开发者

stop loading action for button in web view is not working

开发者 https://www.devze.com 2023-01-16 23:21 出处:网络
when 开发者_开发知识库i tap a button in web view which is connected to action-\"stop loading\" of that web view

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

精彩评论

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