summaryrefslogtreecommitdiff
path: root/UICaboodle/RVPage.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2011-02-02 00:11:55 -0800
committerGrant Paul <chpwn@chpwn.com>2011-02-03 14:47:17 -0800
commitfe8e721fbeeaa802b0a3c3092d6d3e6d758cf583 (patch)
tree4d1e47755eb57f52817290d7ac4dbb9bdc0ccc7b /UICaboodle/RVPage.mm
parent0c1cb67a559b2077dddedf7eab3251a3e4cc0812 (diff)
Added session persistence; moved -init to -loadView, -viewDidLoad, etc; added releasing of views in low-memory situations; style changes.
Diffstat (limited to 'UICaboodle/RVPage.mm')
-rw-r--r--UICaboodle/RVPage.mm27
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