//判断是否为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 )
时间: 2024-10-26 22:15:43