title: Fetch Album with local Identifier using Photos Framework
body: <p>I am keeping track from which album the user has selected a photo and passing it as a string (albumName) to the next VC.</p>
  
  <p>I want to fetch only the photos in that album for further selection and processing.</p>
  
  <p>this is what I thought would do the trick but I must be missing something:</p>
  
  <pre><code>-(void) fetchImages{
      self.assets = [[PHFetchResult alloc]init];
          NSLog(@"Album Name:%@",self.albumName);
  
      if (self.fromAlbum) {
  
  
          PHFetchResult *userAlbums = [PHAssetCollection fetchAssetCollectionsWithLocalIdentifiers:@[self.albumName]    options:nil];
          PHAssetCollection *collection = userAlbums[0];
  
          PHFetchOptions *onlyImagesOptions = [PHFetchOptions new];
          onlyImagesOptions.predicate = [NSPredicate predicateWithFormat:@"mediaType = %i", PHAssetMediaTypeImage];
  
          NSLog(@"Collection:%@", collection.localIdentifier);
  
          self.assets = [PHAsset fetchAssetsInAssetCollection:collection options:onlyImagesOptions];
  
  .....
  </code></pre>
  
  <p>when i log the <code>collection.localIdentifier</code> i get <code>null</code>  so no collection/album is fetched.</p>
  
  <p>What am I missing/messing up?</p>
  
  <p>Thanks</p>