导入第三方
import "UIImageView+WebCache.h"
//获取图片对象
MyImage *mi = self.array[indexPath.item];
//SDWebImage加载图片
[cell.img sd_setImageWithURL:[NSURL URLWithString:mi.url] placeholderImage:[UIImage imageNamed:@"0.png"]];
cell.img.frame = CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height);
网友评论