//将view转换成image
- (UIImage *)getImageWithTheView:(UIView *)theView
{
UIGraphicsBeginImageContextWithOptions(theView.bounds.size, YES, 0);
[theView drawViewHierarchyInRect:theView.bounds afterScreenUpdates:YES];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
说白了就截图