]> git.saurik.com Git - cydia.git/commitdiff
Fixes for 1.0.2.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 27 Jun 2008 10:13:26 +0000 (10:13 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:08:06 +0000 (07:08 +0000)
UICaboodle/RVBook.mm

index e6cc1263159508aeb2594b9281e7828931b8bc79..ccd3e426b0235d0ba9875a4c37675c36dc21f2ae 100644 (file)
     [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 {
     [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 {