星五博客

xcode中UIImage加载本地及远程图片资源

//本地资源
[UIImage imageNamed:@"58x58.png"];
//远程资源
[UIImage imageWithData:
	[NSData dataWithContentsOfURL:
		[NSURL URLWithString:@"http://localhost/58x58.png"]]];


IOS