从 iPod 库导入媒体
我是 iPhone 编程新手。 我需要从 iPhone 媒体库导入媒体并复制到我的应用程序的文档目录。 请帮我。 副词中的感谢
i am the new for iphone programming.
i need to import media from iphone media library and copy to my app's document dir.
please help me.
thanks in adv.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信您可以将资产从媒体库转移到您自己的应用程序目录中,但您可以通过 MPMusicPlayerController。 (请参阅 Apple 的 iPod 库访问编程指南 了解更多信息,如果这是您想要实现的目标。)
AV Foundation 编程指南 还包含有关访问 iPod 库中的媒体和照片等的信息,因此您可能想阅读一下。
I don't believe you can transfer assets from the media library into your own app's directory, but you can playback songs, etc. via the MPMusicPlayerController. (See Apple's iPod Library Access Programming Guide for more information, if this is what you're attempting to achieve.)
The AV Foundation Programming Guide also contains information about accessing media in the iPod library and photos, etc. so you might want to have a read of this.