+ (UIImage *) imageFromURLString: (NSString *) urlstring
{
// This call is synchronous and blocking
return [UIImage imageWithData:[NSData
dataWithContentsOfURL:[NSURL URLWithString:urlstring]]];
}
直接转化一下就可以直接拿到图片!
作者:稻草人11223
标签:--,synchronous,iOS,URL,NSString,UIImage,11223,urlstring,图片 From: https://blog.51cto.com/u_13188203/7230158