// 获得导航栏
CGRect navrect =self.navigationController.navigationBar.frame;
navrect.size.height// 为导航栏的高度
// 状态栏
CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame];
rectStatus.size.height // 为状态栏的高度
// 获得导航栏
CGRect navrect =self.navigationController.navigationBar.frame;
navrect.size.height// 为导航栏的高度
// 状态栏
CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame];