@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