//获取设备屏幕的宽
[UIScreen mainScreen].bounds.size.width
//获取设备屏幕的高
[UIScreen mainScreen].bounds.size.height
//获取除去状态栏高度后的设备屏幕的宽
[[UIScreen mainScreen]applicationFrame].size.width
//获取除去状态栏高度后的设备屏幕的高
[[UIScreen mainScreen]applicationFrame].size.height
//获取状态栏的宽
[[UIApplication sharedApplication] statusBarFrame].size.width
//获取状态栏的高
[[UIApplication sharedApplication] statusBarFrame].size.height
网友评论