summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {