在CGContext中渲染我的UITextView时遇到问题,它变得模糊。
UIGraphicsBeginImageContextWithOptions(CGSizeMake(700, 700), NO, 0.0);
CGContextScaleCTM(UIGraphicsGetCurrentContext(), 2, 2);
[myTextView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *text_image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
使用上面的代码时得到这个结果: