1.導航狀態尺寸code
// 狀態欄(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);