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];
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