diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-08-02 00:07:34 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:08:12 +0000 |
commit | 7b0ce2dae1de402fa371933b3254bf19b81a89eb (patch) | |
tree | de4092e90e986e872cb6cbaa5006a5d38445d1a8 /UICaboodle/RVBook.mm | |
parent | 5afbb4b7d503caece8ad938cb7b53a1fd4175ce9 (diff) |
Added settings and sources to manage and fixed a few small nits.
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r-- | UICaboodle/RVBook.mm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index ccd3e42..d83d760 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -172,8 +172,17 @@ - (void) reloadButtonsForPage:(RVPage *)page { if ([pages_ count] == 0 || page != [pages_ lastObject]) return; - NSString *leftButtonTitle([pages_ count] == 1 ? [page leftButtonTitle] : nil); - [navbar_ showButtonsWithLeftTitle:leftButtonTitle rightTitle:[page rightButtonTitle]]; + NSString *leftButtonTitle([page leftButtonTitle]); + RVUINavBarButtonStyle leftButtonStyle = [page leftButtonStyle]; + RVUINavBarButtonStyle rightButtonStyle = [page rightButtonStyle]; + //[navbar_ showButtonsWithLeftTitle:leftButtonTitle rightTitle:[page rightButtonTitle] leftBack:(leftButtonTitle == nil)]; + + [navbar_ + showLeftButton:leftButtonTitle + withStyle:leftButtonStyle + rightButton:[page rightButtonTitle] + withStyle:rightButtonStyle + ]; } - (NSString *) getTitleForPage:(RVPage *)page { |