Bagusflyer
Bagusflyer

Reputation: 12925

iOS Autolayout constants issues which cause the UIView not occupy the whole width in iPad

Here is the screenshot of my ViewController in my Storyboard. As you see, there is a UITableView inside.

enter image description here

And the autolayout setting is like this:

enter image description here

There is only one setting for "wAny hAny". That means the layout should be the same in iPhone and iPad. Unfortunately it's not. It's fine in iPhone. But in iPad, the result is like this:

enter image description here

The tableview is not taking the whole width of the UIView. Why? Can anybody suggest? Thanks

Upvotes: 0

Views: 59

Answers (1)

Robasan
Robasan

Reputation: 155

Uncheck constrain to margins, and set all constraint values zero.

Upvotes: 1

Related Questions