title: How to load image from remote server on the UIImageView in iphone?
body: <p>I am trying to load image from a remote server on the UIImageView in my application. Is it possible to load image from a remote server. I am using the following code </p>
  
  <pre><code>id path = @"http://upload.wikimedia.org/wikipedia/commons/c/c7/Sholay-Main_Male_Cast.jpg";
  NSURL *url = [NSURL URLWithString:path];
  NSData *data = [NSData dataWithContentsOfURL:url];
  UIImage *img = [[UIImage alloc] initWithData:data];
  </code></pre>
  
  <p>I found this code sippnet on the net, but I dont understand how do I load this image on the ImageView.</p>
  
  <p>Can anyone tell me how to add image on the UIImageView.</p>
  
  <p>Thanx in advance...</p>