【开发笔记】获取状态栏和导航栏的rect

//获取状态栏的rect
【【开发笔记】获取状态栏和导航栏的rect】CGRect statusRect = [[UIApplication sharedApplication] statusBarFrame];
//获取导航栏的rect
CGRect navRect = self.navigationController.navigationBar.frame;
那么导航栏+状态栏的高度
statusRect.size.height+navRect.size.height

    推荐阅读