Last active
December 24, 2015 13:19
-
-
Save bradpurchase/6803912 to your computer and use it in GitHub Desktop.
Method to get around iOS 7 status bar overlapping in a side menu.
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
CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame]; | |
[self.tableView setContentInset:UIEdgeInsetsMake(statusBarFrame.size.height, self.tableView.contentInset.left, self.tableView.contentInset.bottom, self.tableView.contentInset.right)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment