Skip to content

Instantly share code, notes, and snippets.

@mamaz
Last active August 29, 2015 14:23
Show Gist options
  • Save mamaz/f71be7d14bcd60b6cb89 to your computer and use it in GitHub Desktop.
Save mamaz/f71be7d14bcd60b6cb89 to your computer and use it in GitHub Desktop.
No Marrgin left for UITableView iOS
// 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