#import extern "C" { int IOSDeviceSaleFactor() { return [[UIScreen mainScreen] scale]; } }