]> git.saurik.com Git - cydia.git/commitdiff
Fixed 2.0 support.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 6 May 2008 12:08:41 +0000 (12:08 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:08:00 +0000 (07:08 +0000)
UICaboodle/RVBook.mm

index 5ac8b2ed88c66b7973e627bedd0094b28878f623..db1ae0a71a3ff6721871bbbf38a47f221837fedf 100644 (file)
     [pages_ addObject:page];
     [self reloadButtonsForPage:page];
 
     [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];
     [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
+#endif
 }
 
 - (void) popPages:(unsigned)pages {
 }
 
 - (void) popPages:(unsigned)pages {
     [transition_ transition:(animated ? 2 : 0) toView:page];
     [page setPageActive:YES];
     [self reloadButtonsForPage:page];
     [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];
     [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
+#endif
 }
 
 - (void) setTitle:(NSString *)title forPage:(RVPage *)page {
 }
 
 - (void) setTitle:(NSString *)title forPage:(RVPage *)page {