-(UIImage*)getNormalImage:(UIView*)view{
float width = [UIScreen mainScreen].bounds.size.width;
float heigt = [UIScreen mainScreen].bounds.size.height;
UIGraphicsBeginImageContext(CGSizeMake(width, heigt));
CGContextRef context = UIGraphicsGetCurrentContext();
[view.layer.presentationLayer renderInContext:context];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
returnimage;
}
不停的使用以上方法,造成了内存暴涨的现象
网友评论