WebUIDelegate methods not called

2019-05-30 17:06发布

For some reason the following webview UI delegate methods are never called. Tried opening, clicking, interacting with webview to trigger the delegate calls and nothing works.

- (void)webViewFocus:(WebView *)sender {
    NSLog(@"focusing %@", sender);
}

- (void)webViewUnfocus:(WebView *)sender {
    NSLog(@"unfocusing %@", sender);
}

- (BOOL)webViewIsStatusBarVisible:(WebView *)sender {
    return YES;
}

- (void)webView:(WebView *)sender setStatusBarVisible:(BOOL)visible {
    NSLog(@"%@  %d", sender, visible);
}

I made sure the the delegate is correctly hooked up and can confirm that when user wants to open a new window, - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request WebUIDelegate method is correctly called. Any ideas?

0条回答
登录 后发表回答