#pragma mark - 获取屏幕截图
- (UIImage *)getNormalImage:(UIView *)view {
UIGraphicsBeginImageContext(CGSizeMake(XJ_ScreenWidth, XJ_ScreenHeight));
CGContextRef context = UIGraphicsGetCurrentContext();
[view.layer renderInContext:context];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
网友评论