2017-08-07 94 views

回答

2

這是因爲該Constraint to margins的。佈局邊距表示佈局系統在佈置子視圖時可以使用的UIView內部周圍的填充 - 以確保視圖邊緣和子視圖之間留有間隙。

您可以通過在添加約束時取消選中Constraint to margins來避免此情況。

enter image description here

+0

是的就是這樣,Tanx很多 –