Jake Chasan
Jake Chasan

Reputation: 6550

iPad Not Respecting AutoLayout Constraints from Interface Builder

I am using AutoLayout in my iOS App. On the iPhone, the UITableView extends to both edges of the screen; however, on the iPad, it stops a few pixels short of the edges.

Here are my AutoLayout constraints:

constraints

Here is a screenshot of the issue: background issue

Any ideas as to why this is occurring?

Upvotes: 0

Views: 100

Answers (1)

Bhavin Bhadani
Bhavin Bhadani

Reputation: 22364

Trailing and Leading space is -16.00000, make it 0 by uncheck constraint to margin option...Because it is -16.000, it makes -16 space from edges...
You should done it like below image...

enter image description here

It pinned your edges to 0 as you want it

Upvotes: 1

Related Questions