【发布时间】:2012-02-14 22:58:00
【问题描述】:
我正在将一些 png 文件合并到一个 uiimage 并且我关注了这个线程 (UIImageWriteToSavedPhotosAlbum save as PNG with transparency?)
并尝试通过将此代码替换为我的图像来将结果保存为 png 文件:[self composeImageWithWidth:100 andHeight:100)..
当我使用模拟器进行测试时,我会转到应用程序支持中的文件夹并在那里找到 png。但是,当我在真实设备上进行测试时,我在相册中找不到 png 文件。
可能出了什么问题? 或许是相册的路径?
感谢您的回答
【问题讨论】:
-
试试:UIImageWriteToSavedPhotosAlbum(yourImageHere, nil, nil, nil);
-
它不会保存为PNG,对吧?
标签: iphone uiimage png ios4 nsdocumentdirectory