How implement a UIActivityIndicatorView when the UIWebView is Loading? (iPhone ObjC)

后端 未结 3 2199
栀梦
栀梦 2020-12-17 22:08

I want to know how to implement an activityIndicator in a WebView based app, I wrote the following code but the indicator does not appear.

The webview load file loca

3条回答
  •  旧时难觅i
    2020-12-17 22:22

    UIWebView.loading property can also be used.

    Apple's doc: @property(nonatomic, readonly, getter=isLoading) BOOL loading Description A Boolean value indicating whether the receiver is done loading content. (read-only) If YES, the receiver is still loading content; otherwise, NO.

    In iOS6 it looks like Apple has fixed some issues with this property as well. http://code-gotcha.blogspot.fi/2012/08/uiwebviewloading-in-ios-6-fixed.html

提交回复
热议问题