Created
January 17, 2014 20:53
-
-
Save PadraigK/8481266 to your computer and use it in GitHub Desktop.
Your nightmare of double borders at the bottom of table views after selecting a cell is now over.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
// Fix double cell border after highlight | |
if (indexPath.row == self.fetchedResultsController.fetchedObjects.count-1) { | |
UITableViewCell * cell = [self.tableView cellForRowAtIndexPath:indexPath]; | |
UIView *tableScrollView = [[cell subviews] lastObject]; | |
UIView *separator = [[tableScrollView subviews] lastObject]; | |
[separator setBackgroundColor:[UIColor clearColor]]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment