标签:
+ (UIImage*)imageFromView:(UIView*)view{
02
03 UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, view.layer.contentsScale);
04
05 [view.layer renderInContext:UIGraphicsGetCurrentContext()];
06
07 UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
08
09 UIGraphicsEndImageContext();
10
11 return image;
12
13 }
标签:
原文地址:http://www.cnblogs.com/yunis/p/4290772.html