'Migrating from UIWebView to WKWebView/ Configuration cannot be nil

Error when trying to switch my objective-c project from UIwebview to WKwebview

 NSURL* webViewURL = webView.request.URL;
NSString* urlString = [webViewURL absoluteString];
if([urlString containsString:@"usertoken"]){
    DDURLParser* urlParser = [[DDURLParser alloc] initWithURLString:urlString];
    NSString* userToken = [urlParser valueForVariable:@"usertoken"];
    if(userToken && ![userToken isEqualToString:@""]){
        [self loginUserWithAccessToken:userToken];

Property 'request' not found on object of type 'WKWebView *' I get this error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source