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