summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.mm
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r--UICaboodle/RVBook.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index cef1ace..708e66f 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -157,18 +157,19 @@
[navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
}
-- (void) setTitle:(NSString *)title forPage:(RVPage *)page {
+- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {
if ([pages_ count] == 0 || page != [pages_ lastObject])
return;
UINavigationItem *navitem = [navbar_ topItem];
- [navitem setTitle:title];
+ [navitem setBackButtonTitle:title];
}
-- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {
+- (void) reloadTitleForPage:(RVPage *)page {
if ([pages_ count] == 0 || page != [pages_ lastObject])
return;
UINavigationItem *navitem = [navbar_ topItem];
- [navitem setBackButtonTitle:title];
+ NSString *title = [self getTitleForPage:page];
+ [navitem setTitle:title];
}
- (void) reloadButtonsForPage:(RVPage *)page {