objective c - Xcode 6 not respecting autolayout constraints -
i had wanted storyboard files scale size of simulator/device screen. unable figure out how in xcode 6. alternative idea, then, place constraints on buttons within project using interface builder. placed constraints on buttons--for example, attempted place centering constraint on 1 button clicking on background of view , connecting button (and selecting "center horizantally in container"). when run program, button doesn't re-center. same applies constraints place of trailing edges. xcode ignores of them. if run iphone 6 simulator, buttons don't increase space fill simulator (they "scale up" in sense of size, don't move themselves). doing wrong?
make sure constrains lines blue (not orange , have no warning saying button show different @ running time. if have of these problems starting step delete bad (oranges) constrains , use "add missing constrains" re run project , check layout.
another way delete constrains , use "add suggested constrains" 1 of buttons , create rest of constrains based on button.
Comments
Post a Comment