标签:
//判断是否为iPad
#define ISIPAD [[[UIDevice currentDevice].model substringToIndex:4] isEqualToString:@"iPad"]
//屏幕高度
#define SCREEN_HEIGHT ( ISIPAD ? 480 : [[UIScreen mainScreen] currentMode].size.height / 2 )
//屏幕宽度
#define SCREEN_WIDTH ( ISIPAD ? 320 : [[UIScreen mainScreen] currentMode].size.width / 2 )
标签:
原文地址:http://www.cnblogs.com/ygm900/p/4482311.html