From: Jay Freeman (saurik) Date: Tue, 6 May 2008 12:08:41 +0000 (+0000) Subject: Fixed 2.0 support. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/291cc5b9eede4150afa87878823d248f10fad174 Fixed 2.0 support. --- diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 5ac8b2ed..db1ae0a7 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 {