ios7 vs ios8 margin constraints differ

  • cell1 is a Basic Cell
  • cell2 is a Custom Cell with a label and a leading space constraint

On ios8 devices the cell2 aligns perfectly with cell1. This is the result for ios7 devices.

The reason for this is that in ios8 apple added layout margins. So if the constraint on cell2 is relative to margin the result for ios7 and ios8 are different. Easy fix is to uncheck relativ to margin and set a correct constant.

Thomas Sattlecker

Thomas Sattlecker

View Comments