X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/423f8cb9332c025bce60a40dc6efaf49abc59de9..66abcbb0a2e423cce98c3aeb541b1d609fc8f7fa:/UICaboodle/RVPage.mm diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index a92058ec..77007558 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -1,7 +1,7 @@ #import "RVPage.h" #import -#import +#import #import "RVBook.h" @@ -20,10 +20,18 @@ return nil; } -- (NSString *) rightButtonTitle { +- (id) rightButtonTitle { return nil; } +- (UINavigationButtonStyle) leftButtonStyle { + return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal; +} + +- (UINavigationButtonStyle) rightButtonStyle { + return UINavigationButtonStyleNormal; +} + - (void) _rightButtonClicked { [self doesNotRecognizeSelector:_cmd]; } @@ -36,6 +44,10 @@ return nil; } +- (UIImage *) rightButtonImage { + return nil; +} + - (void) setPageActive:(BOOL)active { } @@ -43,10 +55,6 @@ [self doesNotRecognizeSelector:_cmd]; } -- (void) setTitle:(NSString *)title { - [book_ setTitle:title forPage:self]; -} - - (void) setBackButtonTitle:(NSString *)title { [book_ setBackButtonTitle:title forPage:self]; }