将音频文件保存到Coredata/CloudKit Swift的binaryData
我需要将音频文件保存到Coredata/CloudKit项目的BinaryData中,然后将其读回。
对于图像,我会做:
保存:让data = uiimagepngresentation(图像)
加载:让image = uiimage(data:data)
有人知道如何使用AudioFile?
非常感谢
I need to save audio file to binarydata for a coredata/cloudkit project and read it back.
For an image I would do:
To save: let data = UIImagePNGRepresentation(image)
To load: let image = UIImage(data: data)
Does anyone knows how to do this with audioFile?
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论