- + (UIImage *) imageFromURLString: (NSString *) urlstring
- {
- // This call is synchronous and blocking
- return [UIImage imageWithData:[NSData
- dataWithContentsOfURL:[NSURL URLWithString:urlstring]]];
- }
- //该片段来自于http://www.codesnippet.cn/detail/231220138193.html
来源: http://www.codesnippet.cn/detail/231220138193.html