diff options
Diffstat (limited to 'UICaboodle/RVPage.mm')
-rw-r--r-- | UICaboodle/RVPage.mm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 81c8739..d3de6d3 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -6,12 +6,39 @@ #import "RVBook.h" @implementation CYViewController + - (void) setDelegate:(id)delegate { delegate_ = delegate; } + +- (void) viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + + if (!loaded_) + [self reloadData]; +} + +- (void) releaseSubviews { + // Do nothing. +} + +- (void) setView:(UIView *)view { + if (view == nil) + [self releaseSubviews]; + + [super setView:view]; +} + - (void) reloadData { + loaded_ = YES; } + +- (NSURL *) navigationURL { + return nil; +} + - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait); } + @end |