2

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
  • 431
  • 6
  • 19

2 Answers2

4

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.

smparkes
  • 13,460
  • 4
  • 34
  • 62
  • would using that framework help me save a file in png format to the albums folder in the photo library? – tiw Jan 20 '12 at 17:33
  • @tiw: check out UIImageWriteToSavedPhotosAlbum — http://developer.apple.com/library/ios/documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIImageWriteToSavedPhotosAlbum – Tommy Jan 20 '12 at 17:36
  • 2
    I 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`. – smparkes Jan 20 '12 at 17:37
1

Root/private/var/mobile/Media/DCMI/100APPLE

Naloiko Eugene
  • 2,285
  • 1
  • 25
  • 18