IOS 如何在 UIPasteboard 中设置音频数据
How to set audio data in UIPasteboard in IOS
我正在使用 UIPasteboard class 来复制媒体文件。图像已成功添加到 UIPasteboard 中,但我无法在 UIPasteboard 中设置音频数据。
所以请任何人帮助我,如何在 UIPasteboard 中添加音频数据?
目前我正在使用此代码,但这不起作用:
let past = UIPasteboard.general
past.items = [["public.mpeg-4":data!]]
好的,我终于得到了答案。我们无法在 UIPasteBoard
class.
中设置音频内容
我正在使用 UIPasteboard class 来复制媒体文件。图像已成功添加到 UIPasteboard 中,但我无法在 UIPasteboard 中设置音频数据。
所以请任何人帮助我,如何在 UIPasteboard 中添加音频数据?
目前我正在使用此代码,但这不起作用:
let past = UIPasteboard.general
past.items = [["public.mpeg-4":data!]]
好的,我终于得到了答案。我们无法在 UIPasteBoard
class.