title: Load image from server on a UIImageView in phone
body: <p>I'm having a problem loading a remote image into a UIImageVIew...
  It just doesn't show the image, may be i'm missing something... </p>
  
  <p>I also use the described here but with the same results
  <a href="https://stackoverflow.com/questions/1905497/how-to-load-image-from-remote-server-on-the-uiimageview-in-iphone">How to load image from remote server on the UIImageView in iphone?</a></p>
  
  <p>Can someone help me?</p>
  
  <p>This is the code i'm using</p>
  
  <p>Im getting the data from a xml and on the image element I have the full path</p>
  
  <pre><code>[[detailViewController detailImage] setImage:[UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: [NSString stringWithFormat:@"%@", [[promoList objectAtIndex: promoIndex] objectForKey: @"image"]] ]]] ];
  </code></pre>
  
  <p>With this code the image are displayed correctly</p>
  
  <pre><code>[[detailViewController detailImage] setImage:[UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: @"http://localhost/promos/preview/1.jpeg"]] ]];
  </code></pre>