This is what I am going to:
if ([mainScreen respondsToSelector:@selector(scale)]) { UIGraphicsBeginImageContextWithOptions(newSize, NO, [[UIScreen mainScreen] scale]); } else { UIGraphicsBeginImageContext(newSize); }
I think this is good enough, but if you have any better suggestions, please respond.
source share