]> git.saurik.com Git - cydia.git/blob - UICaboodle/ResetView.mm
Renamed News to Home and started pre-caching tabs for perceived performance.
[cydia.git] / UICaboodle / ResetView.mm
1 #import "ResetView.h"
2
3 #include <objc/objc.h>
4 #include <objc/runtime.h>
5
6 @implementation UIView (RVBook)
7
8 - (void) resetViewAnimated:(BOOL)animated {
9 fprintf(stderr, "%s\n", class_getName(self->isa));
10 _assert(false);
11 }
12
13 - (void) clearView {
14 fprintf(stderr, "%s\n", class_getName(self->isa));
15 _assert(false);
16 }
17
18 @end
19
20 @implementation UITable (RVBook)
21
22 - (void) resetViewAnimated:(BOOL)animated {
23 [self selectRow:-1 byExtendingSelection:NO withFade:animated];
24 }
25
26 - (void) clearView {
27 [self clearAllData];
28 }
29
30 @end
31
32 @implementation UISectionList (RVBook)
33
34 - (void) resetViewAnimated:(BOOL)animated {
35 [[self table] resetViewAnimated:animated];
36 }
37
38 - (void) clearView {
39 [[self table] clearView];
40 }
41
42 @end