开发者

Saving images inside iPhone application without using database or server side saving technique

开发者 https://www.devze.com 2022-12-18 12:35 出处:网络
I am developing an application which requires saving images in the \"saved folder\" of iPhone Photo album after performing some animations on ImageViews. Is it possible to save the incomplete images t

I am developing an application which requires saving images in the "saved folder" of iPhone Photo album after performing some animations on ImageViews. Is it possible to save the incomplete images temporarily in the iphone application without using database or server side saving technique, so that user can use it for future use and only completely changed ones should get saved in Photo A开发者_如何转开发lbum? If yes then it would be a great help to get any code or suggestion.

Thanks in advance :) !!!!


Sure, images can be converted to NSData objects, which can then be written to a standard file. Check out UIImagePNGRepresentation() and -[NSData writeToFile:atomically:].


You can then save to the standard native Photo album application using the technique described here (from a UIImage instance):

How to save picture to iPhone photo library?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号