2015-09-27 67 views

回答

2

刪除所有舊約束如在下面的圖像示出的第一和設置約束:

對於按鈕:

enter image description here

對於TableView中:

enter image description here

結果:

enter image description here

+0

我這樣做就像你一樣!當我模擬應用程序時,TableView消失了! – godlyblade

+0

你是否刪除舊約束? –

+0

這是tableview的默認行爲,但您可以增加左側距離。 –

1

如下所示,添加兩個約束就足夠了。

enter image description here

enter image description here

+0

沒有,這不起作用。掃描按鈕已居中。我也嘗試將TableView放在下面。這不適用於一個簡單的中心命令... – godlyblade