摘要:
程序中一个界面用到了好多张大图,内存报警告了,所以做了一下图片缩放,在网上找了别人写的代码//把图片做等比缩放,生成一个新图片 1 - (UIImage *) imageByScalingProportionallyToSize:(CGSize)targetSize sourceImage:(UIImage *)sourceImage { 2 3 UIGraphicsBeginImageContext(targetSize); 4 [sourceImage drawInRect:CGRectMake(0, 0, targetSize.width, targetSize... 阅读全文
posted @ 2012-02-16 22:38
pengyingh
阅读(2848)
评论(0)
推荐(0)