代码测试:
NSLog(@"%lf",self.navigationController.navigationBar.frame.size.height);
CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame];
NSLog(@"%f", rectStatus.size.height); // 高度
NSLog(@"%lf",self.tabBarController.tabBar.frame.size.height);