skip to Main Content

Xcode – WKWebView show content wrong frame in old project

I have an old iOS project using Objective C. When I add a WKWebView to a ViewController NSURL *url = [NSURL URLWithString:@"https://www.google.com"]; WKWebViewConfiguration *theConfiguration = [[WKWebViewConfiguration alloc] init]; _webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:theConfiguration]; [self.view addSubview:_webView]; self.webView.translatesAutoresizingMaskIntoConstraints = NO; [NSLayoutConstraint…

VIEW QUESTION
Back To Top
Search