#define App_Frame_H ([[UIScreen mainScreen] applicationFrame].size.height)
#define MAIN_FRAME_H ([UIScreen mainScreen].bounds.size.height)
#define SELF_HEIGHT self.view.frame.size.height
ios6下 4寸
2014-02-28 12:18:28.937 APP_SIZE[4605:c07] App_Frame_H::548.000000
2014-02-28 12:18:28.939 APP_SIZE[4605:c07] MAIN_FRAME_H::568.000000
2014-02-28 12:18:28.939 APP_SIZE[4605:c07] SELF_HEIGHT::548.000000
ios7下 4寸
2014-02-28 12:19:51.078 APP_SIZE[4664:a0b] App_Frame_H::548.000000
2014-02-28 12:19:51.080 APP_SIZE[4664:a0b] MAIN_FRAME_H::568.000000
2014-02-28 12:19:51.081 APP_SIZE[4664:a0b] SELF_HEIGHT::568.000000
分析一下
大家都知道ios7 self.view的起点是从屏幕的起点开始所以会从 548变到568
navigation
ios6 系统下如果有navigation 起点是从navigation 下开始的 ,没有navigation 是从statusBar下面开始
ios7无论有没有navigation都是从 statusBar下面开始