summaryrefslogtreecommitdiff
path: root/UICaboodle/ResetView.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-07-01 13:26:11 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:58 +0000
commit327624b6106222962bcd56edbce94294362bb4b6 (patch)
treec9f890820ed8103c85734f55ef32f28a355dc513 /UICaboodle/ResetView.mm
parent8696b988ce2b755ed708a5a84740446bbb7fb7f1 (diff)
Massive fixes for 3.x.
Diffstat (limited to 'UICaboodle/ResetView.mm')
-rw-r--r--UICaboodle/ResetView.mm4
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 {