UIImage 同步下载图片
2016-10-15 本文已影响0人
周大湿
NSURL * url = [NSURL URLWithString: @"http://www.baidu.com/img/baidu_sylogo1.gif"];
UIImage * image = [UIImage imageWithData: [NSData dataWithContentsOfURL:url]];
NSURL * url = [NSURL URLWithString: @"http://www.baidu.com/img/baidu_sylogo1.gif"];
UIImage * image = [UIImage imageWithData: [NSData dataWithContentsOfURL:url]];