]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/ResetView.mm
Checkpoint before UICaboodle reorganzation.
[cydia.git] / UICaboodle / ResetView.mm
index 8c0041a3bc2d739e680ebe99937c1f868751d1ef..bd1c8ee8b82d253abe55c47979dd7dfa14a1c43d 100644 (file)
@@ -3,6 +3,11 @@
 #include <objc/objc.h>
 #include <objc/runtime.h>
 
+#include <errno.h>
+
+#include <cstdio>
+#include <cstdlib>
+
 @implementation UIView (RVBook)
 
 - (void) resetViewAnimated:(BOOL)animated {
 
 @end
 
+@implementation UITableView (RVBook)
+
+- (void) resetViewAnimated:(BOOL)animated {
+    //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
+    if (NSIndexPath *path = [self indexPathForSelectedRow])
+        [self deselectRowAtIndexPath:path animated:animated];
+}
+
+- (void) clearView {
+    //XXX:[[self table] clearView];
+}
+
+@end
+
 @implementation UISectionList (RVBook)
 
 - (void) resetViewAnimated:(BOOL)animated {