转自:http://blog.csdn.net/xiaoyuanzhiying/article/details/44059079
- + (UIImage *) imageFromURLString: (NSString *) urlstring
- {
- // This call is synchronous and blocking
- return [UIImage imageWithData:[NSData
- dataWithContentsOfURL:[NSURL URLWithString:urlstring]]];
- }