Is it possible to prevent UITableViewCellSelectionStyleNone
from removing a cell separator?
I have a custom expandable UITableViewCell
and this is what happens when I click a cell:
If you look closely, there is no separator between King's Meadow and University East Entrance.
When I use this, it actually makes the separator visible, but there's a delay as to when the line separator shows:
(void)layoutSubviews {
[super layoutSubviews];
for (UIView *subview in self.contentView.superview.subviews) {
if ([NSStringFromClass(subview.class) hasSuffix:@"SeparatorView"]) {
subview.hidden = NO;
}
}
}
Is there a better approach for this?