Search code examples
iosconstraintsiphone-5autolayout

Xcode constraints for iPhone5 messing me up


I'm trying to do a thing that seems easy but since the new auto layout in xcode I having a hard time to understand what's going on with the constraints.

The thing I want to do is 2 subviews in a main view basically one scrollview at the top and one uiview at the bottom with no space in between

on iPhone 5 I want it to be
400px
148px

and on iPhone 4 :
358px
112px

Each time I'm adding a constraint one other disappear or an other one doesn't allows me to change the height
I don't know if this is explainable or what but any help is welcome


Solution

  • I hate the new AutoLayout in Interface Builder. The first thing I do is disable it. Just disable it by clicking on File's Owner > Show File Inspector, then untick Use AutoLayout.