summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.mm
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r--UICaboodle/RVBook.mm10
1 files changed, 8 insertions, 2 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index 7812a24..433de39 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -172,7 +172,10 @@
[pages_ addObject:page];
[self reloadButtonsForPage:page];
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:removeOnPop:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated];
}
- (void) pushPage:(RVPage *)page {
@@ -223,7 +226,10 @@
[page setPageActive:YES];
[self reloadButtonsForPage:page];
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:removeOnPop:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated];
}
- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {