X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/423f8cb9332c025bce60a40dc6efaf49abc59de9..b36d38d148a03d0e4ac4770c4e9f8b12bc5c42ba:/UICaboodle/RVPage.mm?ds=sidebyside diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index a92058ec..4a8ea5de 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -1,71 +1,21 @@ #import "RVPage.h" #import -#import +#import #import "RVBook.h" -@implementation RVPage - -- (NSString *) title { - [self doesNotRecognizeSelector:_cmd]; - return nil; -} - -- (NSString *) backButtonTitle { - return nil; -} - -- (NSString *) leftButtonTitle { - return nil; -} - -- (NSString *) rightButtonTitle { - return nil; -} - -- (void) _rightButtonClicked { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void) _leftButtonClicked { - [self doesNotRecognizeSelector:_cmd]; -} - -- (UIView *) accessoryView { - return nil; -} - -- (void) setPageActive:(BOOL)active { -} - -- (void) resetViewAnimated:(BOOL)animated { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void) setTitle:(NSString *)title { - [book_ setTitle:title forPage:self]; -} - -- (void) setBackButtonTitle:(NSString *)title { - [book_ setBackButtonTitle:title forPage:self]; -} - -- (void) reloadButtons { - [book_ reloadButtonsForPage:self]; +@implementation CYViewController +- (void)setDelegate:(id)delegate { + delegate_ = delegate; } - - (void) reloadData { } - -- (id) initWithBook:(RVBook *)book { - if ((self = [super initWithFrame:[book pageBounds]]) != nil) { - book_ = book; - } return self; +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { + if ([self parentViewController]) { + return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation]; + } else { + return [super shouldAutorotateToInterfaceOrientation:orientation]; + } } - -- (void) setDelegate:(id)delegate { - delegate_ = delegate; -} - @end