What is the path of photos album on iPhone device?
10,565
Solution 1
You can't access assets on the file system directly (assuming this isn't a jailbreak question). In addition to UIImageWriteToSavedPhotosAlbum, the Assets Library Framework provides access to the photo library if you're targeting newer versions of iOS.
Solution 2
Root/private/var/mobile/Media/DCMI/100APPLE
Comments
-
tiw almost 2 years
I was trying to save a PNG file to photos albums folder on the iPhone device with a .png extension so that the transparency remains..
My question is: What is the path of photos album UIImageWriteToSavedPhotosAlbum function is using? I am using data write to file method..
Thanks
-
tiw over 12 yearswould using that framework help me save a file in png format to the albums folder in the photo library?
-
Tommy over 12 years@tiw: check out UIImageWriteToSavedPhotosAlbum — developer.apple.com/library/ios/documentation/uikit/reference/…
-
smparkes over 12 yearsI think so. I don't believe there's a "copy file to asset" function but if you read the png into an NSData you can then use
writeImageDataToSavedPhotosAlbum:metadata:completionBlock
. -
Sankalp over 5 yearsWhat is "Root"?
-
Naloiko Eugene over 5 yearsYes, an old reply :) It was a jailbroken iPhone 3GS it seems