if ([scroller_ respondsToSelector:@selector(setZoomScale:duration:)])
[scroller_ setZoomScale:1 duration:0];
- else
- [scroller_ setZoomScale:1 animated:NO];
+ else if ([scroller_ respondsToSelector:@selector(_setZoomScale:duration:)])
+ [scroller_ _setZoomScale:1 duration:0];
+ /*else if ([scroller_ respondsToSelector:@selector(setZoomScale:animated:)])
+ [scroller_ setZoomScale:1 animated:NO];*/
CGRect webrect = [scroller_ bounds];
webrect.size.height = 0;
[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 {