How to realize the UIView convert to UIImage?
#import <QuartzCore/QuartzCore.h>
+(UIImage *)imageFromView:(UIView*)view
{
UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, view.layer.contentsScale);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}