+ (UIImage *) imageFromURLString: (NSString *) urlstring
{
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlStr]];
UIImage *image = [UIImage imageWithData:data];
return image;
}
+ (UIImage *) imageFromURLString: (NSString *) urlstring
{
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlStr]];
UIImage *image = [UIImage imageWithData:data];
return image;
}
本文标题:通过图片url构建UIImage
本文链接:https://www.haomeiwen.com/subject/quamextx.html
网友评论