Skip to content

Instantly share code, notes, and snippets.

@Ciechan
Created January 3, 2014 23:11
Show Gist options
  • Save Ciechan/8248521 to your computer and use it in GitHub Desktop.
Save Ciechan/8248521 to your computer and use it in GitHub Desktop.
this *sometimes* helps fixing the cell separator
@implementation UITableViewCell (SeparatoriOS7Fix)
- (void)fixSeparator
{
UIEdgeInsets insets = self.separatorInset;
self.separatorInset = UIEdgeInsetsMake(insets.top, insets.left + 1.0, insets.bottom, insets.right);
self.separatorInset = insets;
}
@end
@steipete
Copy link

steipete commented Jan 3, 2014

separatorInsets ignores top and bottom values, so no need to preserve them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment