Skip to content

Instantly share code, notes, and snippets.

@bradpurchase
Last active December 24, 2015 13:19
Show Gist options
  • Save bradpurchase/6803912 to your computer and use it in GitHub Desktop.
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.
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