I have a string variable tmpImgURLStr
which contains URL like www.abc.com/img.png
. i want to display that image in my imageView for that i have use some code but it's not working which is given below:
NSLog(@"Img URL === %@",tmpImgURLStr);
NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",tmpImgURLStr]]];
UIImage *myimage = [[UIImage alloc] initWithData:mydata];
[logoImg setImage:myimage];