From 62203f589a805627eb9e49dbaa397d5682d1b950 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 27 Jun 2008 10:13:26 +0000 Subject: [PATCH] Fixes for 1.0.2. --- UICaboodle/RVBook.mm | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index e6cc1263..ccd3e426 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 { -- 2.45.2