当前位置: 动力学知识库 > 问答 > 编程问答 >

How to indicate network activity in status bar in iOS 8 extension app

问题描述:

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?

分享给朋友:
您可能感兴趣的文章:
随机阅读: