#pragma mark-截图
- (UIImage*)screenshot:(UIView*)inputView {
UIGraphicsBeginImageContextWithOptions(inputView.bounds.size,NO,0);
[inputView drawViewHierarchyInRect:inputView.frame afterScreenUpdates:YES];
UIImage*image =UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}