如何在视网膜显示质量不变的情况下捕捉UIView到UI图像
+ (UIImage *) imageWithView:(UIView *)view{
UIGraphicsBeginImageContext(view.bounds.size);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;}
慕侠2389804
慕容森
至尊宝的传说
随时随地看视频慕课网APP