iOS开发之--从URL加载图片
+ (UIImage *) imageFromURLString: (NSString *) urlstring { // This call is synchronous and blocking return [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlstring]]]; }
直接转化一下就可以直接拿到图片!
本文来自博客园,作者:稻草人11223,转载请注明原文链接:https://www.cnblogs.com/hero11223/p/5924085.html