4 #include <objc/runtime.h>
11 @implementation UIView (RVBook)
13 - (void) resetViewAnimated:(BOOL)animated {
14 fprintf(stderr, "%s\n", class_getName(self->isa));
19 fprintf(stderr, "%s\n", class_getName(self->isa));
25 @implementation UITable (RVBook)
27 - (void) resetViewAnimated:(BOOL)animated {
28 [self selectRow:-1 byExtendingSelection:NO withFade:animated];
37 @implementation UITableView (RVBook)
39 - (void) resetViewAnimated:(BOOL)animated {
40 //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
41 if (NSIndexPath *path = [self indexPathForSelectedRow])
42 [self deselectRowAtIndexPath:path animated:animated];
46 //XXX:[[self table] clearView];
51 @implementation UISectionList (RVBook)
53 - (void) resetViewAnimated:(BOOL)animated {
54 [[self table] resetViewAnimated:animated];
58 [[self table] clearView];