diff options
Diffstat (limited to 'UICaboodle/ResetView.mm')
-rw-r--r-- | UICaboodle/ResetView.mm | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm deleted file mode 100644 index ffdb043..0000000 --- a/UICaboodle/ResetView.mm +++ /dev/null @@ -1,37 +0,0 @@ -#import "ResetView.h" - -#include <objc/objc.h> -#include <objc/runtime.h> - -#include <errno.h> - -#include <cstdio> -#include <cstdlib> - -@implementation UIView (RVBook) - -- (void) resetViewAnimated:(BOOL)animated { - fprintf(stderr, "%s\n", class_getName(self->isa)); - _assert(false); -} - -- (void) clearView { - fprintf(stderr, "%s\n", class_getName(self->isa)); - _assert(false); -} - -@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 |