+ (UIImage *) imageFromURLString: (NSString *) urlstring { // This call is synchronous and blocking return [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlstring]]]; }
直接转化一下就可以直接拿到图片!
+ (UIImage *) imageFromURLString: (NSString *) urlstring { // This call is synchronous and blocking return [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlstring]]]; }
直接转化一下就可以直接拿到图片!
转载于:https://www.cnblogs.com/hero11223/p/5924085.html