Muhammad Naveed Akram
Muhammad Naveed Akram

Reputation: 55

webview not showing on full Screen of iphone 6

I am new in iOS development and want to show the WebView on fullscreen, it is showing on fullscreen in iPhone5 but not in iPhone6. it comes on half of the screen plz take a look at https://www.dropbox.com/s/0o7b8l3o52d8623/Screen%20Shot%202014-12-31%20at%202.33.00%20pm.png?dl=0

Upvotes: 1

Views: 1500

Answers (1)

iOS Developer
iOS Developer

Reputation: 169

Muhammad Naveed Akram Set Your View to Autolayout.

And another method to Set Constrain like as and Dislike Use AutoLayoutButton.

self.webView.autoresizingMask=UIViewAutoresizingFlexibleBottomMargin|UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin|UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleTopMargin;

And if You Using Custom Tool Bar then Set Autosizing For WebView like as

For WebView

enter image description here

For ToolBar

enter image description here

Hope it Helps You.

Upvotes: 2

Related Questions