1.导航状态尺寸
// 状态栏(statusbar) CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame]; // 导航栏(navigationbar) CGRect rectNav = self.navigationController.navigationBar.frame; NSLog(@"状态栏:%f---%f",rectStatus.size.width,rectStatus.size.height); NSLog(@"导航栏:%f---%f",rectNav.size.width,rectNav.size.height);