X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d210b85d77ea40a096290d32423b3b607fa86c1e..2fd3803f9b993755221dfc1cca2588cd7c9e3aac:/UICaboodle/ResetView.mm diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm index e0db8315..bd1c8ee8 100644 --- a/UICaboodle/ResetView.mm +++ b/UICaboodle/ResetView.mm @@ -34,6 +34,20 @@ @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 {