I'm seeing a weird behavior in all of my UITableView's. This is starting to drive me nuts.
I have plain styled UITableViews. The last row in the section doesn't get a separator, it just blends in to the section header (default usage by the way). Checking the height of this last row, it appears Apple is making it 1px larger to remove the separator height from the cell. The problem is when I select the row, but drag off, the separator line shows up and never goes away. If I go back a view and come back in, it defaults to off.
I'm seeing this across all of my table views, normal cells and custom cells. What can I do to make sure this last separator stays away when I cancel a selection? iOS 7 only build. Running current builds, no betas.
For me reloading of cell helped for some separator line problems:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
}
- (void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With