Created
January 17, 2016 10:38
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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