summaryrefslogtreecommitdiff
path: root/UICaboodle/RVPage.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-09-21 10:53:41 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 10:42:31 +0000
commitb5e7eebb25026afcb8052552a5fedb7984c08a38 (patch)
tree904c8b45935bae94a1d40a3ffe91b8e4e0549573 /UICaboodle/RVPage.mm
parentdf86a2c8189742f00ba09e75b77b6f0cc7eb1824 (diff)
Commit (chpwn): uiviewcontroller-final.patch
Diffstat (limited to 'UICaboodle/RVPage.mm')
-rw-r--r--UICaboodle/RVPage.mm80
1 files changed, 5 insertions, 75 deletions
diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm
index 7154bab..932b45e 100644
--- a/UICaboodle/RVPage.mm
+++ b/UICaboodle/RVPage.mm
@@ -5,83 +5,13 @@
#import "RVBook.h"
-@implementation RVPage
-
-- (bool) splitView {
- return false;
-}
-
-- (NSString *) title {
- [self doesNotRecognizeSelector:_cmd];
- return nil;
-}
-
-- (NSString *) backButtonTitle {
- return nil;
-}
-
-- (NSString *) leftButtonTitle {
- return nil;
-}
-
-- (id) rightButtonTitle {
- return nil;
-}
-
-- (UINavigationButtonStyle) leftButtonStyle {
- return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal;
-}
-
-- (UINavigationButtonStyle) rightButtonStyle {
- return UINavigationButtonStyleNormal;
-}
-
-- (void) _rightButtonClicked {
- [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) _leftButtonClicked {
- [self doesNotRecognizeSelector:_cmd];
-}
-
-- (UIView *) accessoryView {
- return nil;
-}
-
-- (UIImage *) rightButtonImage {
- return nil;
-}
-
-- (void) setPageActive:(BOOL)active {
-}
-
-- (void) resetViewAnimated:(BOOL)animated {
- [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) setBackButtonTitle:(NSString *)title {
- [book_ setBackButtonTitle:title forPage:self];
+@implementation UCViewController
+- (void)setDelegate:(id)delegate {
+ delegate_ = delegate;
}
-
-- (void) reloadButtons {
- [book_ reloadButtonsForPage:self];
+- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+ return NO; /* XXX: return YES; */
}
-
- (void) reloadData {
}
-
-- (id) initWithBook:(RVBook *)book {
- if ((self = [super initWithFrame:[book pageBounds]]) != nil) {
- book_ = book;
- } return self;
-}
-
-- (void) setDelegate:(id)delegate {
- delegate_ = delegate;
-}
-
-- (void) setBook:(RVBook *)book {
- book_ = book;
-}
-
@end