Created
November 13, 2015 10:33
-
-
Save ytlvy/fe6dcfe53367546d1a8f to your computer and use it in GitHub Desktop.
iOS 8 workaround for no inset in UITableViewCell separator
This file contains hidden or 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
// No separator insets | |
self.separatorInset = UIEdgeInsetsZero; | |
if ([self respondsToSelector:@selector(layoutMargins)]) { | |
self.layoutMargins = UIEdgeInsetsZero; | |
} |
This file contains hidden or 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
// No separator insets | |
self.tableView.separatorInset = UIEdgeInsetsZero; | |
if ([self.tableView respondsToSelector:@selector(layoutMargins)]) { | |
self.tableView.layoutMargins = UIEdgeInsetsZero; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment