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.
精彩评论