title: Load an image to UIImage from a file path to the asset library
body: <p>Related to my previous question <a href="https://stackoverflow.com/questions/8082719/convert-an-nsurl-to-an-nsstring/8082770#8082770">here</a>. </p>
  
  <p>I have a path to an image in the asset library , for example:</p>
  
  <pre><code>assets-library://asset/asset.JPG?id=1000000001&amp;ext=JPG
  </code></pre>
  
  <p>Now, how could I load the image from this path to a UIImage object?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>NSString *path = [occasion imagePath];
  
  //temp
  NSLog(@"the 2nd occasion imagePath is: %@", path);
  //end
  
  if (path != nil)
  {
      //UIImage *image = [UIImage imageNamed:path];
      UIImage *image = [UIImage imageWithContentsOfFile:path];
  
      image = [image imageByScalingAndCroppingForSize:CGSizeMake(36.0, 42.0)];
      [[cell imageView] setImage:image];
  }
  </code></pre>