I assume that you are using
UIGraphicsBeginImageContext(<#CGSize size#>);
to initialize the context. On retina displays, this results in blurry font images. Use
UIGraphicsBeginImageContextWithOptions(myFrameSize, NO, 0.0f);
to fix it.
Also, it seems that if you are using Layer, define yourself as a delegate of the layer and make your drawing:
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { NSGraphicsContext *nsGraphicsContext; nsGraphicsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:ctx flipped:NO]; [NSGraphicsContext saveGraphicsState]; [NSGraphicsContext setCurrentContext:nsGraphicsContext];
It will also work.
source share