]> git.saurik.com Git - cydia.git/commitdiff
Deal with a few deprecated messages.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 9 May 2009 12:42:27 +0000 (12:42 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:15 +0000 (07:13 +0000)
UICaboodle/BrowserView.m
UICaboodle/RVBook.mm

index fbec7b7c123ca436e5e5a8d4fcbadce85d0f5e77..cb3709c23f4a2837847d6a32eb7385f3b3d3b56a 100644 (file)
 
         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;
index 7812a249597005f0bc8235e387fcc747361dacda..433de39dedd55dcd4f476d74483d977c71021323 100644 (file)
     [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 {