]> git.saurik.com Git - cydia.git/blame - UICaboodle/ResetView.mm
Merge CYViewController into UCViewController.
[cydia.git] / UICaboodle / ResetView.mm
CommitLineData
59efd93a
JF
1#import "ResetView.h"
2
3#include <objc/objc.h>
4#include <objc/runtime.h>
5
d210b85d
JF
6#include <errno.h>
7
8#include <cstdio>
9#include <cstdlib>
10
59efd93a
JF
11@implementation UIView (RVBook)
12
13- (void) resetViewAnimated:(BOOL)animated {
14 fprintf(stderr, "%s\n", class_getName(self->isa));
15 _assert(false);
16}
17
18- (void) clearView {
19 fprintf(stderr, "%s\n", class_getName(self->isa));
20 _assert(false);
21}
22
23@end
24
1f4aaec1
JF
25@implementation UITableView (RVBook)
26
27- (void) resetViewAnimated:(BOOL)animated {
5d8f1006
JF
28 //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
29 if (NSIndexPath *path = [self indexPathForSelectedRow])
30 [self deselectRowAtIndexPath:path animated:animated];
1f4aaec1
JF
31}
32
33- (void) clearView {
34 //XXX:[[self table] clearView];
35}
36
37@end