summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-06-27 10:13:26 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:06 +0000
commitc15d236a59348a8de7a68c291fe81df0e03b30a2 (patch)
tree8e60d981401a7d7691307e1738637a3c740ecfec
parent6ffc5c635cfb245b6d0bad58451c5e221cbdb0bb (diff)
Fixes for 1.0.2.
-rw-r--r--UICaboodle/RVBook.mm19
1 files changed, 9 insertions, 10 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index e6cc126..ccd3e42 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -102,11 +102,10 @@
[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
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:goingBack:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
}
- (void) popPages:(unsigned)pages {
@@ -149,11 +148,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
+
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:goingBack:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
}
- (void) setTitle:(NSString *)title forPage:(RVPage *)page {