0

I'm new to Xcode and I'm using constraints. Why does the bottom button have so much space in between the 2nd bottom button? How can I fix this so the bottom button is moved up to be right under the 2nd most bottom button?

enter image description here

What should I do here?

enter image description here

grantespo
  • 2,233
  • 2
  • 24
  • 62

1 Answers1

3

To move up the bottom button you could remove the bottom constraint to the superview.

You will also have to add a top constraint on this button, linking it to the one above.

Edgar
  • 203
  • 2
  • 9
  • 1
    Great! How would I add a constraint to make the button wider on a iPad screen? – grantespo Sep 28 '16 at 08:46
  • 2
    Well that's difficult to answer in a comment. What you can do is read the Apple documentation on this matter here : [BuildingforMultipleScreenSizes](https://developer.apple.com/library/content/documentation/ToolsLanguages/Conceptual/Xcode_Overview/BuildingforMultipleScreenSizes.html), or the cool RayWenderlich tutorial : [adaptive-layout-tutorial-in-ios-9-getting-started](https://www.raywenderlich.com/113768/adaptive-layout-tutorial-in-ios-9-getting-started) – Edgar Sep 28 '16 at 08:52