diff options
Diffstat (limited to 'UICaboodle/ResetView.mm')
-rw-r--r-- | UICaboodle/ResetView.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm index 4265be4..bd1c8ee 100644 --- a/UICaboodle/ResetView.mm +++ b/UICaboodle/ResetView.mm @@ -37,7 +37,9 @@ @implementation UITableView (RVBook) - (void) resetViewAnimated:(BOOL)animated { - [self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone]; + //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone]; + if (NSIndexPath *path = [self indexPathForSelectedRow]) + [self deselectRowAtIndexPath:path animated:animated]; } - (void) clearView { |