if (toolbar_ != nil)
[toolbar_ setDelegate:nil];
+ for (RVPage *page in pages_)
+ [page setBook:nil];
+
[pages_ release];
[navbar_ release];
[transition_ release];
[pages_ addObject:page];
[self reloadButtonsForPage:page];
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:removeOnPop:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated];
}
- (void) pushPage:(RVPage *)page {
[page setPageActive:YES];
[self reloadButtonsForPage:page];
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:removeOnPop:)])
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ else
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated];
}
- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {