Search code examples
iphonexcodeinterface-builderuilabeluistepper

UIStepper Xcode Interface Builder alignment issue


I'm not sure why but when I try to align my UIStepper in IB in line with my label, it is not inline when I run it. So I have to adjust my UIStepper a lot lower than my labels in order to get it alined. Please see the picture:

Does anyone know why?enter image description here

Thanks.


Solution

  • Make sure your Autoresizing positions for the UIStepper are set correctly, the example in the screenshot should align your UIStepper with the UILabel.

    enter image description here