guys, this is my code:
- (void) renderPageAtIndex:(NSUInteger)index inContext:(CGContextRef)ctx { //background CGContextSetFillColorWithColor(ctx, [[
Try setting the layers contentScale variable like this:
layer.contentsScale = [UIScreen mainScreen].scale;
This should make the code adapt to retina/nonretina displays.