Friday, October 15, 2010

Display Image in Imageview from any remote url

Display Image in Imageview from any remote url::

here

musicImage is a string which contain url.
and musicThumbnail is a imageview.


NSURL *imageURL = [NSURL URLWithString:musicImage];
NSData *data = [NSData dataWithContentsOfURL:imageURL];
UIImage *image = [[UIImage alloc] initWithData:data];
[musicThumbnail setImage:image];

No comments:

Post a Comment