0

When i save images in ALAssetsLibrary, it's ok to show them in my table, but when i close my app from multitasking bar - records is cleared. How to save them and stay load in my table when i run my app again???

I found this Saving ALAsset URL in NSUserDefaults

Community
  • 1
  • 1
Nubaslon
  • 741
  • 2
  • 11
  • 27
  • "The lifetimes of objects you get back from a library instance are tied to the lifetime of the library instance." (ALAssetsLibrary class reference) which makes it sound difficult to do what you want. – trojanfoe Feb 25 '13 at 12:30

1 Answers1

0

I think you want to save resources so that you can use them later. If it does, you can save the path of resource to your user defaults or core data, and store them into "Photo Album". When you need it, just use the path in string as the resource path to get it.

Take a look at ALAssetsLibrary+CustomPhotoAlbum, maybe you'll like it. ;)

Kjuly
  • 34,476
  • 22
  • 104
  • 118