I am trying to load images from a website into a tableview. I can load an image stored in the project, but am unable to get image from the web. I know I am missing something here. Any ideas?
UIImage *cellImage = [UIImage imageNamed:
@"http://www.website.com/thumbs/img_10.jpg"];
cell.imageView.image = cellImage;
Any help would be great! Thank you!
You can use it like this:
But get image synchronously using this way will block your UI. You’d better get image asynchronously. Send out a request and after get the image update your UI in your request delegate method.