You can do that like this:
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:theUrl]]];
where theUrl
is the url in string format. Then simply assign the image to your image view: imageView.image = image
- presuming you have set up a UIImageView either in your code, as an IBOutlet or as a tagged object in a view.
NOTE: You may want to have a look at Lazy Table Images to load the image asynchronously.