2014-09-03 130 views
1

我正在嘗試將3.5英寸的屏幕自動佈局爲4,但「PEDIR」按鈕太大或粘在標籤或在底部。我需要該按鈕位於標籤「SEU PEDIDO ...」左側空間的中心。什麼是最好的方式來做到這一點?iOS按鈕位置x,y 3,5英寸到4英寸

3,5-英寸:

3,5 inch

4英寸:

4 inch

編輯

現在我得到這樣的警告:

warning

回答

0

更新:

  1. 創建您的按鈕的容器視圖,然後將其固定到四面八方:

    enter image description here

  2. 爲您的按鈕創建約束(黃金)在其超級觀點(灰色)中垂直居中。 Don't forget to add width and height constraint

    enter image description here

  3. 這裏是4英寸的輸出:

    enter image description here

+0

工作就像一個魅力!謝謝! – 2014-09-04 17:06:33

相關問題