]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/ResetView.mm
say thank you, comex :P. animation for editing bar button item for sections.
[cydia.git] / UICaboodle / ResetView.mm
index e0db8315e8b9e345b7b71ca7571089c7af13d6de..bd1c8ee8b82d253abe55c47979dd7dfa14a1c43d 100644 (file)
 
 @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 {