我正在获取包含图像的JSON数据。我在UICollectionViewCell
上显示该图片,但我无法在UICollectionViewCell
上显示该图片。在JSON链接中,这是数据
{"pd_id":"244","pd_product_name":"Panasonic TH-22C400DX 55.88 cm (22) LED TV (Full HD)","pd_item_price":"11610","pd_item_mrp":"12110","pd_item_code":"TH-22C400DX","image":"product_1450855201.png"}
我将此图像存储在NSObject类中。
cell.ItemImageName.image =[UIImage imageNamed:[NSString stringWithFormat:@"%@", mensObject.pd_item_image]];
mensObect
为NSObject
级,pd_item_image
为NSString
。如何在`UICollectionView'中显示图像?