]> git.saurik.com Git - cydia.git/commitdiff
One less private class: goodbye UIProgressView, hello UIActivityIndicatorView.
authorGrant Paul <chpwn@chpwn.com>
Thu, 2 Dec 2010 05:45:16 +0000 (21:45 -0800)
committerGrant Paul <chpwn@chpwn.com>
Thu, 2 Dec 2010 05:45:16 +0000 (21:45 -0800)
UICaboodle/BrowserView.h
UICaboodle/BrowserView.mm

index 22a4f107bf62f4f5dfee0e143a41e6c4c71a0382..f5d50294e45d2d05b5037f6d84401f166fc57a86 100644 (file)
@@ -15,7 +15,6 @@
 @class NSURL;
 @class NSURLRequest;
 
-@class UIProgressIndicator;
 @class UIScroller;
 @class UIDocumentWebView;
 
@@ -62,7 +61,7 @@
     _transient CYWebView *webview_;
     _transient UIScrollView *scroller_;
 
-    UIProgressIndicator *indicator_;
+    UIActivityIndicatorView *indicator_;
     IndirectDelegate *indirect_;
     NSURLAuthenticationChallenge *challenge_;
 
index 0e95fa83ba31dc80a3cf8a135c2ed1deabb98fe4..bacc40b2e0a56b6827dddd28a4319d282f3607b1 100644 (file)
@@ -1003,10 +1003,9 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
             action:@selector(reloadButtonClicked)
         ];
 
-        CGSize indsize = [UIProgressIndicator defaultSizeForStyle:UIProgressIndicatorStyleMediumWhite];
-        indicator_ = [[UIProgressIndicator alloc] initWithFrame:CGRectMake(15, 5, indsize.width, indsize.height)];
-        [indicator_ setStyle:UIProgressIndicatorStyleMediumWhite];
-        [indicator_ startAnimation];
+        indicator_ = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; 
+        [indicator_ setFrame:CGRectMake(15, 5, [indicator_ frame].size.width, [indicator_ frame].size.height)];
+        [indicator_ startAnimating];
         [[loadingitem_ view] addSubview:indicator_];
 
         [webview_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];