问题描述:

I'd like to show network activity while loading web page in iOS 8 extension app.

But can't use [UIApplication sharedApplication] in extension app.

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

{

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

return YES;

}

How to show network activity in extension app?

相关阅读:
Top