iPhone rewrite image file -


i access image file in iphone images directory. open file binary , able rewrite it.

assuming user has chosen file using uiimagepickercontroller, possible such thing using iphone api?

http://developer.apple.com/library/ios/#documentation/audiovideo/conceptual/cameraandphotolib_topicsforios/articles/pickinganitemfromthephotolibrary.html tutorial in getting uiimage photo library.

once obtain image, can custom modifications uiimage , save photo album using api:

adds specified image user’s camera roll album. void uiimagewritetosavedphotosalbum (    uiimage  *image,    id       completiontarget,    sel      completionselector,    void     *contextinfo );   

if looking replace existing photo photo library , there no direct (or apple approved) way that. if still want that, can find path photo library (/private/var/mobile/media/dcim/100apple) , try rewriting photos.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -