X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d210b85d77ea40a096290d32423b3b607fa86c1e..d610ce3021c49cc1a81a0a37c25d3b4f9a2fe23b:/UICaboodle/ResetView.mm diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm index e0db8315..ffdb0431 100644 --- a/UICaboodle/ResetView.mm +++ b/UICaboodle/ResetView.mm @@ -22,26 +22,16 @@ @end -@implementation UITable (RVBook) +@implementation UITableView (RVBook) - (void) resetViewAnimated:(BOOL)animated { - [self selectRow:-1 byExtendingSelection:NO withFade:animated]; + //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone]; + if (NSIndexPath *path = [self indexPathForSelectedRow]) + [self deselectRowAtIndexPath:path animated:animated]; } - (void) clearView { - [self clearAllData]; -} - -@end - -@implementation UISectionList (RVBook) - -- (void) resetViewAnimated:(BOOL)animated { - [[self table] resetViewAnimated:animated]; -} - -- (void) clearView { - [[self table] clearView]; + //XXX:[[self table] clearView]; } @end