iOS 获取navigationBar高度 状态栏高度 tabBarHeight

CGFloat navigationBarAndStatusBarHeight = self.navigationController.navigationBar.frame.size.height + [[UIApplication sharedApplication] statusBarFrame].size.height;
CGFloat tabBarHeight = self.tabBarController.tabBar.frame.size.height;

你可能感兴趣的:(iOS 获取navigationBar高度 状态栏高度 tabBarHeight)