title: Objective-C/ALAssetslibrary - How retrieve the correct path of the assets
body: <p>I have implemented a simple method that find the path of the images inside the device. Actually i'm using the iPhone Simulator. This is the code that i'm using:</p>
  
  <pre><code>[library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
      if (group) {
          [group setAssetsFilter:[ALAssetsFilter allPhotos]];
          [group enumerateAssetsUsingBlock:^(ALAsset *asset, NSUInteger index, BOOL *stop){
              if (asset){
                  NSString *description = [asset description];
                  NSRange first = [description rangeOfString:@"URLs:"];
                  NSRange second = [description rangeOfString:@"?id="];
                  NSString *path = [description substringWithRange: NSMakeRange(first.location + first.length, second.location - (first.location + first.length))];
                  [idList addObject:path];
              }
          }];
      }        
      } failureBlock:^(NSError *error) {
          NSLog(@"error enumerating AssetLibrary groups %@\n", error);
      }
    ];
  }); 
  </code></pre>
  
  <p>At this point, if i log the path of the images i'm receiving this: "assets-library://asset/asset.JPG", that for what i know isn't the entire path with the exactly position of the image. Are you ok? So, how can i obtain the entire path of the asset?</p>
  
  <p>Thanks</p>