'WKWebView web page aligns top left on IPA

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



Sources

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

Source: Stack Overflow

Solution Source