Created
December 6, 2018 17:14
-
-
Save wszdwp/904856b38f15689bc7045c925122bf19 to your computer and use it in GitHub Desktop.
fix ios 11 table extra top margin in an existed project
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
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