+ (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]]]; }
直接转化一下就可以直接拿到图片!