summaryrefslogtreecommitdiff
path: root/UICaboodle/BrowserView.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-12-01 21:45:16 -0800
committerGrant Paul <chpwn@chpwn.com>2010-12-01 21:45:16 -0800
commit7a11fbb993dd74d270f452507777595753458586 (patch)
tree64e96c4500862314851d6abf15a74e45c980bc79 /UICaboodle/BrowserView.mm
parenta020a50efa5435fc5c7317297399196cd35d2c61 (diff)
One less private class: goodbye UIProgressView, hello UIActivityIndicatorView.
Diffstat (limited to 'UICaboodle/BrowserView.mm')
-rw-r--r--UICaboodle/BrowserView.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 0e95fa8..bacc40b 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -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)];