Skip to content

Instantly share code, notes, and snippets.

@benjaminsnorris
Created December 23, 2014 05:29
Show Gist options
  • Save benjaminsnorris/fd63e00e5fa42e55f42c to your computer and use it in GitHub Desktop.
Save benjaminsnorris/fd63e00e5fa42e55f42c to your computer and use it in GitHub Desktop.
Return height of nav bar plus status bar
- (CGFloat)navAndStatusBarHeight {
return self.navigationController.navigationBar.frame.size.height + [UIApplication sharedApplication].statusBarFrame.size.height;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment