We've also updated the OOZWebView based on some work we've been doing for another client. We've added a UIActivityIndicator to the view so that there is a little spinner when the pages are loading. If you don't like the spinner and would rather have a Network Activity Indicator (the little spinner to the right of the network signal strength indicator) you can easily change the OOZWebView.m file and everywhere we have
[activityIndicator startAnimating];
you can replace that with
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = YES;
and everywhere we have
[activityIndicator stopAnimating];
you can replace that with
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = NO;
Yes, you are leaving an unused UIActivityIndicator item in your code but it's pretty small and probably won't break anything. However, if you want to be sure that you have clean code, you need to remove the references to activityIndicator in the OOZWebView.h and OOZWebView.m also remove the UIActivityIndicator from OOZWebView.xib
0 comments:
Post a Comment