Last active
August 29, 2015 14:23
-
-
Save mamaz/f71be7d14bcd60b6cb89 to your computer and use it in GitHub Desktop.
No Marrgin left for UITableView iOS
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
// on VC | |
// remove spacing | |
if ([self.table respondsToSelector:@selector(setSeparatorInset:)]) { // Safety check for below iOS 7 | |
[self.table setSeparatorInset:UIEdgeInsetsZero]; | |
} | |
// on custom cell subclass | |
- (UIEdgeInsets)layoutMargins | |
{ | |
return UIEdgeInsetsZero; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment