0

I am using WKWebView in my Objective C application to load a web view. When I run the app through XCode the page loads properlyScreenshot for running app from xcode

If I take an IPA and run it on device the webpage loads to the topleft of the WKWebView

Screenshot for loading app using IPA

  • Please provide your question with code showing a reproducible example. – lazarevzubov Feb 24 '22 at 08:59
  • Just used this code in viewdidload method NSURL* url = [NSURL URLWithString:@"https://www.google.com"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [self.testWebView loadRequest:request]; – Akash Kumar Feb 24 '22 at 15:44
  • What is `testWebView ` and how is it configured? – lazarevzubov Feb 25 '22 at 07:07
  • There's also quite a few similar questions on SO that might help: https://stackoverflow.com/questions/28489892/wkwebview-shows-a-cropped-background-and-blank-space-after-rotation-on-ipad , https://stackoverflow.com/questions/34373155/content-of-webpage-is-cut-off-in-uiwebview , https://stackoverflow.com/questions/58367393/wkwebview-on-macos-cuts-off-top – lazarevzubov Feb 25 '22 at 08:29
  • `testWebView` is a WKwebview. I tried configuring it using `storyboard` and manually in code – Akash Kumar Apr 29 '22 at 07:33
  • Unfortunately, it's not enough. We need details. Please provide a minimal reproducible example. – lazarevzubov Apr 29 '22 at 08:02

0 Answers0