iPhone设备上的相册路径是什么?
我试图将 PNG 文件保存到 iPhone 设备上的相册文件夹中,扩展名为 .png,以便保持透明度。
我的问题是: UIImageWriteToSavedPhotosAlbum 函数使用的相册路径是什么? 我正在使用数据写入文件方法..
谢谢
I was trying to save a PNG file to photos albums folder on the iPhone device with a .png extension so that the transparency remains..
My question is:
What is the path of photos album UIImageWriteToSavedPhotosAlbum function is using?
I am using data write to file method..
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无法直接访问文件系统上的资产(假设这不是越狱问题)。除了 UIImageWriteToSavedPhotosAlbum 之外,资产库框架 如果您的目标是较新版本的 iOS,则提供对照片库的访问。
You can't access assets on the file system directly (assuming this isn't a jailbreak question). In addition to UIImageWriteToSavedPhotosAlbum, the Assets Library Framework provides access to the photo library if you're targeting newer versions of iOS.
根/私有/var/mobile/Media/DCMI/100APPLE
Root/private/var/mobile/Media/DCMI/100APPLE