Skip to content

Instantly share code, notes, and snippets.

@TheCodedSelf
Created January 17, 2016 10:38
Show Gist options
  • Save TheCodedSelf/19d2af2be1aab46fa2b1 to your computer and use it in GitHub Desktop.
Save TheCodedSelf/19d2af2be1aab46fa2b1 to your computer and use it in GitHub Desktop.
iOS: Get the visible height of a table view (minus the tab bar and navigation bar
CGFloat height = self.tableView.bounds.size.height - [UIApplication sharedApplication].statusBarFrame.size.height;
height = height - self.navigationController.navigationBar.frame.size.height;
height = height - self.tabBarController.tabBar.bounds.size.height;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment