title: Unable to load image from asset URL
body: <p>I have a class that stores information about the assets on the phone (images, videos).</p>
  
  <p>My class has the <code>ResourceURLString</code> defined as such</p>
  
  <pre><code>@property NSURL *ResourceURL;
  </code></pre>
  
  <p>I am setting the property while looping trough the <code>assets</code> on the phone as such</p>
  
  <pre><code>Item.ResourceURLString = [[asset valueForProperty:ALAssetPropertyURLs] objectForKey:[[asset valueForProperty:ALAssetPropertyRepresentations] objectAtIndex:0]];
  </code></pre>
  
  <p>When the user clicks on an image I want to load the image.</p>
  
  <p>The code that I have is this</p>
  
  <pre><code>NSData *imageUrl = [NSData dataWithContentsOfURL:[NSURL URLWithString:[CurrentItem.ResourceURL absoluteString]]];    
  
  Img = [UIImage imageWithData:imageUrl];
  </code></pre>
  
  <p>But the Image is always nil
  I have verified that the ResourceURL property contains the URL
  assets: <code>library://asset/asset.JPG?id=82690321-91C1-4650-8348-F3FD93D14613&amp;ext=JPG</code></p>