在 iPhone OS 上将视频从 UIImagePickerController 保存到 Core Data
我需要一些有关如何将视频数据保存到核心数据的指导,以便我稍后可以再次检索它。
我可以毫无问题地检索从 UIImagePickerController 返回的 NSURL,但随后我不确定如何将视频数据保存到 Core Data。我已经可以从核心数据中保存和检索常规图像,但我不确定如何对视频数据执行相同的操作。
如果我能指出正确的方向,我将非常感激。
I need some guidance on how to save video data to core data so that I can retrieve it again later.
I have no problem retrieving the NSURL that is returned from UIImagePickerController but then I'm not sure how to go about saving the video data to Core Data. I can already save and retrieve regular images from Core Data but I'm not sure how to do the same for video data.
If I could be pointed in the right direction I would really appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这里的想法是将 URL 存储在核心数据存储中,并让视频本身存储在文件系统中。
I think the idea here would be to store the URL in your core data store, and let the video itself be stored in the filesystem.