Search code examples
iosautolayoutsize-classes

Why are constraints different for different devices of same size class?


I have a problem with constraints that I can't understand. The size class that I choose is "wCompact, hRegular", to work for all iPhone devices in Portrait mode. After Setting a trailing constraint for the label "SourceLbl", the distance between that and the right edge was different for different devices.But Why are they different? I want the constraints to be the same for devices of the same size class.

Snapshot1

Snapshot2


Solution

  • It looks like you have no constraints for the 'UITableView' and that's why it's being cut on smaller device screens.