I have a UITableView From an Array created with JSON, but I dont know how show images from the array. The images are an strings urls, but I cant show it on the UITableView.
I know the code to show text is the next code:
cell.textLabel.text = [[lista objectAtIndex:indexPath.row]objectForKey:@"title"];
but i cant use this to the urls with the images, because “Images” is a string data:
cell.imageView.image = [[lista objectAtIndex:indexPath.row] objectForKey:@"Images"];
how can I show the images from an URL?
thank you
You need to download the images actually.
As you are a beginner, I would suggest you download and use AFNetowrking,
AFNetworking has a simple class to download UIImages from a URL:
If you are in a Tableview cell, you simple use the TableView’s cellImageView, instead of creating a new UIImageView, like: