summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-05-06 12:08:41 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:00 +0000
commit826783725a3a1421bbbda58cd44573f606a26b90 (patch)
tree83b81ae38cd30f8f51f99d6d8357280a1928e954 /UICaboodle/RVBook.mm
parentab398adfe5c3cf3ccf350921b339fef9e1cc250c (diff)
Fixed 2.0 support.
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r--UICaboodle/RVBook.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index 5ac8b2e..db1ae0a 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -102,7 +102,11 @@
[pages_ addObject:page];
[self reloadButtonsForPage:page];
+#ifdef __OBJC2__
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+#else
[navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
+#endif
}
- (void) popPages:(unsigned)pages {
@@ -145,7 +149,11 @@
[transition_ transition:(animated ? 2 : 0) toView:page];
[page setPageActive:YES];
[self reloadButtonsForPage:page];
+#ifdef __OBJC2__
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+#else
[navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
+#endif
}
- (void) setTitle:(NSString *)title forPage:(RVPage *)page {