0

I'm defining a constraint as a multiplier in from the left margin as below:

The Constraint

This looks fine on the 4 inch iPhone, but on the larger iPhones it is a little off to the left. Is there any way I can account for this? As far as I'm aware none of the size classes are individual to just the larger iPhones.. The background is a solid image by the way. Can't move it or align things to it

Elements on the 4 Inch iPhone Larger iPhones Display

Chris Byatt
  • 3,689
  • 3
  • 34
  • 61
  • are you trying to align 8 and the background box? – Yuchen Oct 14 '15 at 20:01
  • @YuchenZhong Yes, as it is in the first image – Chris Byatt Oct 14 '15 at 20:01
  • Have you consider using center alignment then? – Yuchen Oct 14 '15 at 20:07
  • @YuchenZhong the black box is part of a single background image that is not at the centre of the view. Or do you mean align with the centre and move to the left with multipliers? – Chris Byatt Oct 14 '15 at 20:08
  • Hmm, this is tricky. But could you tell me also what the **Hours Label** is? – Yuchen Oct 14 '15 at 20:15
  • I switched it to a multiplier <1 from the centre line and that has got it alined. Hours Label is the 24 before it, which it actually shouldn't have been aligned to - it should have been the margin anyway so it was wrong before I changed it to the centre line anyway! thanks :) – Chris Byatt Oct 14 '15 at 20:19

1 Answers1

0

The way I solved this was changing all my multiplier constraints to be set from the centre horizontal and vertical. The layout is now correct across all devices!

Chris Byatt
  • 3,689
  • 3
  • 34
  • 61