ios - How to save an image to iTunes file sharing -


i save image called img itunes file sharing folder. can please tell me how?

here sample code:

nsarray paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes);  nsstring *documentsdir = [paths objectatindex:0];  nsstring *filepath = [nsstring stringwithformat:@"%@/%@.jpg", documentsdir, filename];  nsdata data = uiimagejpegrepresentation(img, 1.0);  [data writetofile:filepath atomically:no]; 

also itunes file sharing:

you should go info.plist , add row

application supports itunes file sharing yes


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -