How to identify if a device has retina display

February 9, 2013 in iOS Snippets


+ (BOOL)hasRetinaDisplay;
{
    return [[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2;
}