通过网址来得到网络图片

2016-03-22  本文已影响25人  傲骨天成科技

NSString *str = [self.allDataArray[indexPath.row]objectForKey:@"pic_url"];
UIImage *image=[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:str]]];
cell.headImageView.image=image;

上一篇 下一篇

猜你喜欢

热点阅读