Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fix ios 11 table extra top margin in an existed project
if([[UIDevice currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad){
if (@available(iOS 11, *)) {
self.accountTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
else {
self.accountTableView.contentInset = UIEdgeInsetsMake(-64, 0, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.