Thursday, 4 July 2013

Check if iOS current device is having retina display?

#pragma mark- Device Check=
+ (BOOL) isRetina
{
    if([[UIScreen mainScreenrespondsToSelector:@selector(scale)])
        return [[UIScreen mainScreenscale] == 2.0 ? YES : NO;
    
    return NO;
}

No comments:

Post a Comment