-(UIImage*)printscreen
{
//以下是实现截屏功能
UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, self.view.opaque, 0.0);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * jieTuImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return jieTuImage;
}