2016-09-28 58 views
0

我是Xcode的新手,我使用的是約束。爲什麼底部按鈕在第二個底部按鈕之間有很大的空間?我怎樣才能解決這個問題,讓最下面的按鈕向上移動到最下面的第二個按鈕下方?IOS StoryBoard約束;底部按鈕上方的大空間

enter image description here

我該怎麼辦嗎?

enter image description here

+0

檢查此答案http://stackoverflow.com/a/25898949/3378413 –

回答

3

要移至底部按鈕,你可以卸下底部約束到上海華。

您還必須在此按鈕上添加一個頂部約束,並將其鏈接到上面的約束。

+1

太棒了!我如何添加一個約束來使按鈕在iPad屏幕上變寬? – grant

+2

那麼在評論中很難回答。你可以在這裏閱讀關於這個問題的Apple文檔:[BuildingforMultipleScreenSizes](https://developer.apple.com/library/content/documentation/ToolsLanguages/Conceptual/Xcode_Overview/BuildingforMultipleScreenSizes.html),或者酷炫的RayWenderlich教程:[adaptive-layout-tutorial-in-ios-9-getting-started](https://www.raywenderlich.com/113768/adaptive-layout-tutorial-in-ios-9-getting-started) – Edgar