Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

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
You can’t perform that action at this time.