获取导航栏、状态的高度

CGRect rectOfStatusbar = [[UIApplication sharedApplication] statusBarFrame];
CGRect rectOfNavigationbar = self.navigationController.navigationBar.frame;

if ((rectOfNavigationbar.size.height + rectOfStatusbar.size.height)>64) {

}

你可能感兴趣的:(获取导航栏、状态的高度)