I am not sure if i missed the URL in the internet. I am trying to copy or move the file [jpeg file] from Document folder to PhotoGallery in iOS. Is there any api available in iOS?
also,
Is there any way to set the notification handler for Document folder, where when the file is created in the document folder,my callback should get triggerd where i will move the file from document folder to Photo Gallery.
You can do it with this:
UIImageWriteToSavedPhotosAlbum (image, self, @selector(image:didFinishSavingWithError:contextInfo:) , nil);
the callback method signature is:
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
Later edit
If you want to get notified for file changes you can find some answers here: Notification of changes to the iPhone's /Documents directory
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.