在Xcode中,下方窗口中有设置constraint的选项。
In Xcode 5, interface builder will not add any constraints automatically. You could add the required constraints manually. In the bottom of window there is an option for that. You can choose Add Missing constraints
or Reset to Suggested constraints
. Otherwise add each constraints one by one.