0

Hi I want to show my photos from iPhone to UICollectionViewController How can I get all the pictures stored in device to NSArray? Or some Array or Set from which I am able to retrieve image array? I want to use something like PhotoFramework or some latest way to do it. Please dont post Asset Library answers since Apple stated that:

IMPORTANT

In iOS 8.0 and later, use the Photos framework instead of the Assets Library framework. The Photos framework provides more features and better performance for working with a user’s photo library. See Photos Framework Reference.

Csabi
  • 3,097
  • 17
  • 59
  • 107
  • 2
    You should visit this link http://stackoverflow.com/questions/12633843/get-all-of-the-pictures-from-an-iphone-photolibrary-in-an-array-using-assetslibr – Adnan Aftab Aug 11 '15 at 14:04
  • @C_X I have read that Photo Framework is better to use than assetlibrary. – Csabi Aug 11 '15 at 14:17

1 Answers1

0

You can do this by us ALassetLibray for more detail You should visit this link Get all of the pictures from an iPhone photoLibrary in an array using AssetsLibrary framework?

Using Photos Framework iOS 8 Photos framework: Get a list of all albums with iOS8

Community
  • 1
  • 1
Adnan Aftab
  • 14,377
  • 4
  • 45
  • 54
  • "IMPORTANT In iOS 8.0 and later, use the Photos framework instead of the Assets Library framework. The Photos framework provides more features and better performance for working with a user’s photo library. See Photos Framework Reference." Apple wrote it – Csabi Aug 11 '15 at 14:18
  • Updates answer , check the second link in answer may be u need do some tweaks but that will work for u – Adnan Aftab Aug 11 '15 at 14:23