开发者

stop loading action for button in web view is not working

when 开发者_开发知识库i tap a button in web view which is connected to action-"stop loading" of that web view is not working..

its not stops loading even after i press a stop button which is inteded for stop loading content ....


If you have a UIButton connected to an IBAction, that IBAction should look something like this:

- (IBAction)onStopButtonTap:(id)sender {
    [webView stopLoading];
}

where webView is an instance variable (presumably an IBOutlet) that references the UIWebView that you want to stop loading.

You can place a breakpoint on the method to verify that it is being called when you expect it to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜