Skip to content

Instantly share code, notes, and snippets.

@Ciechan
Created January 3, 2014 23:11
Embed
What would you like to do?
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