從Interface Builder設定Layout Margin。
點選View元件,切換到Size Inspector頁面,將Layout Margins從Default改成Explicit,即可分別設定上下左右的margin。 ps: controller的view是特例,在Interface Builder無法設定Layout Margins。