I designed a UIWebView with 320x500 in StoryBoard. But when run in Iphone 6 Plus Simulator, i want to this webview full screen or scale with the screen of device. How to make it
In ViewDidLoad and when you use autolayout, the frame is not yet calculated. So, place your code in viewDidLayoutSubviews or in viewDidAppear, and that should fix the bug.
You can also fix that, only by adding constraints in your interface builder (do not forget to remove your code in viewDidLoad) :