Vix Hunk
Vix Hunk

Reputation: 323

WKWebview Delegate methods in Objective-C

updating my code from UIWebView to WKWebview but having this error on my delegate methods

Nullability specifier 'nonnull' conflicts with existing specifier 'null_unspecified'

here is my code an showing this error on navigation

- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation{
  // Show & animate the activity indicator.
  _webView.spinner.hidden = NO;
  [_webView.spinner startAnimating];
}

Upvotes: 2

Views: 742

Answers (1)

Asperi
Asperi

Reputation: 258541

It looks like you redeclare somewhere this delegate method, probably in delegate header, so find it and use as original

- (void)webView:(WKWebView *)webView didCommitNavigation:(null_unspecified WKNavigation *)navigation;

Upvotes: 1

Related Questions