From f4cd7e8b64362481555c8f4e009f9461c039d1a4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 9 May 2009 12:42:27 +0000 Subject: [PATCH] Deal with a few deprecated messages. --- UICaboodle/BrowserView.m | 6 ++++-- UICaboodle/RVBook.mm | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/UICaboodle/BrowserView.m b/UICaboodle/BrowserView.m index fbec7b7c..cb3709c2 100644 --- a/UICaboodle/BrowserView.m +++ b/UICaboodle/BrowserView.m @@ -1058,8 +1058,10 @@ 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; diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 7812a249..433de39d 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -172,7 +172,10 @@ [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 { @@ -223,7 +226,10 @@ [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 { -- 2.45.2