summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-06-30 19:51:29 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:58 +0000
commit1fd88570a688d703f748c32f0fba4eeb813ccd56 (patch)
treedd5c220c1293fccc6363279960df2f3138e32d17
parent1e9e6c9468373d9aec4f6b481f66ed73f15e492a (diff)
Add UITableView support to ResetView.
-rw-r--r--UICaboodle/ResetView.h5
-rw-r--r--UICaboodle/ResetView.mm12
2 files changed, 17 insertions, 0 deletions
diff --git a/UICaboodle/ResetView.h b/UICaboodle/ResetView.h
index 532ccd2..1f92590 100644
--- a/UICaboodle/ResetView.h
+++ b/UICaboodle/ResetView.h
@@ -13,6 +13,11 @@
- (void) clearView;
@end
+@interface UITableView (RVBook)
+- (void) resetViewAnimated:(BOOL)animated;
+- (void) clearView;
+@end
+
@interface UISectionList (RVBook)
- (void) resetViewAnimated:(BOOL)animated;
- (void) clearView;
diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm
index e0db831..4265be4 100644
--- a/UICaboodle/ResetView.mm
+++ b/UICaboodle/ResetView.mm
@@ -34,6 +34,18 @@
@end
+@implementation UITableView (RVBook)
+
+- (void) resetViewAnimated:(BOOL)animated {
+ [self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
+}
+
+- (void) clearView {
+ //XXX:[[self table] clearView];
+}
+
+@end
+
@implementation UISectionList (RVBook)
- (void) resetViewAnimated:(BOOL)animated {