0%

IOS开发:获取屏幕大小的宏

//获取设备屏幕尺寸

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)

#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)//应用尺寸

#define APP_WIDTH [[UIScreen mainScreen]applicationFrame].size.width

#define APP_HEIGHT [[UIScreen mainScreen]applicationFrame].size.height