标签:
/*
* @parma :view需要转换的视图
* @parma:return:图片image
*/
- (UIImage *)getImageFromView:(UIView *)view{
UIGraphicsBeginImageContext(view.bounds.size);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
标签:
原文地址:http://www.cnblogs.com/chenjie-ios/p/4736887.html