本文转自:http://blog.csdn.net/icetime17/article/details/48935601
iPhone 6的屏幕分辨率为 750 * 1334, iPhone 6 plus的标准模式的屏幕分辨率为1242 * 2208. 而iPhone 6 plus允许设置放大模式, 以适应大屏幕的特定需求. 而采用放大模式后, 屏幕分辨率变为1125 * 2001, 为iPhone 6屏幕分辨率的1.5倍. 所以, 在通过屏幕分辨率来决定机型的时候, 要加入对于iPhone 6 plus的放大模式的考虑.
#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6PlusBigMode ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2001), [[UIScreen mainScreen] currentMode].size) : NO)
#define GScreenSize [[UIScreen mainScreen] bounds].size
#define GScreenWidth [[UIScreen mainScreen] bounds].size.width
#define GScreenHeight [[UIScreen mainScreen] bounds].size.height