]> git.saurik.com Git - cydia.git/commitdiff
Add UITableView support to ResetView.
authorJay Freeman (saurik) <saurik@saurk.com>
Tue, 30 Jun 2009 19:51:29 +0000 (19:51 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:58 +0000 (07:13 +0000)
UICaboodle/ResetView.h
UICaboodle/ResetView.mm

index 532ccd2c80222199b4b15fabcf91f00200376e08..1f9259038029997f36628c5e7d0eb8b6a691228b 100644 (file)
 - (void) clearView;
 @end
 
+@interface UITableView (RVBook)
+- (void) resetViewAnimated:(BOOL)animated;
+- (void) clearView;
+@end
+
 @interface UISectionList (RVBook)
 - (void) resetViewAnimated:(BOOL)animated;
 - (void) clearView;
index e0db8315e8b9e345b7b71ca7571089c7af13d6de..4265be4722539a834d3332cc66d664eaad7abd35 100644 (file)
 
 @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 {