iPhone设备上的相册的路径是什么? [英] What is the path of photos album on iPhone device?

查看:509
本文介绍了iPhone设备上的相册的路径是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将PNG文件保存到iPhone设备上的扩展名为.png的相册文件夹中,以便保持透明度.

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..

我的问题是: 相册UIImageWriteToSavedPhotosAlbum函数使用的路径是什么? 我正在使用数据写入文件的方法.

My question is: What is the path of photos album UIImageWriteToSavedPhotosAlbum function is using? I am using data write to file method..

谢谢

推荐答案

您不能直接访问文件系统上的资产(假设这不是越狱问题).除了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.

这篇关于iPhone设备上的相册的路径是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆