博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月14日

摘要: NSData*imgData = [NSDatadataWithContentsOfURL:[NSURLURLWithString:@"图片地址"]];UIImage*tempImg = [UIImageimageWithData:imgData];UIImageView*img = [[UIImageViewalloc]initWithFrame:CGRectMake(15,20,60,80)];img.image= tempImg;//[img initWithImage:tempImg]; 用这个不行,为什么?[tempImgrescaleImageToSize:CG 阅读全文

posted @ 2012-06-14 16:56 BradyChen 阅读(2106) 评论(0) 推荐(0) 编辑