Skip to content

Instantly share code, notes, and snippets.

@benjaminsnorris
Created October 29, 2014 04:36
Show Gist options
  • Save benjaminsnorris/35f8ab9432734d62be5a to your computer and use it in GitHub Desktop.
Save benjaminsnorris/35f8ab9432734d62be5a to your computer and use it in GitHub Desktop.
Method for height of nav and 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