From 1f4aaec17de4c1aa32d4899b5cee05bb667c7fc9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 30 Jun 2009 19:51:29 +0000 Subject: [PATCH] Add UITableView support to ResetView. --- UICaboodle/ResetView.h | 5 +++++ UICaboodle/ResetView.mm | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/UICaboodle/ResetView.h b/UICaboodle/ResetView.h index 532ccd2c..1f925903 100644 --- a/UICaboodle/ResetView.h +++ b/UICaboodle/ResetView.h @@ -13,6 +13,11 @@ - (void) clearView; @end +@interface UITableView (RVBook) +- (void) resetViewAnimated:(BOOL)animated; +- (void) clearView; +@end + @interface UISectionList (RVBook) - (void) resetViewAnimated:(BOOL)animated; - (void) clearView; diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm index e0db8315..4265be47 100644 --- a/UICaboodle/ResetView.mm +++ b/UICaboodle/ResetView.mm @@ -34,6 +34,18 @@ @end +@implementation UITableView (RVBook) + +- (void) resetViewAnimated:(BOOL)animated { + [self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone]; +} + +- (void) clearView { + //XXX:[[self table] clearView]; +} + +@end + @implementation UISectionList (RVBook) - (void) resetViewAnimated:(BOOL)animated { -- 2.45.2