Select the ViewController then from the XCode menu:
Editor --> Resolve Auto Layout issues --> Add missing constraints in View Controller
或者
storyboard 右下角的快捷按钮"Resolve Auto Layout Issues"->"Add Missing Constraints"
Select the ViewController then from the XCode menu:
Editor --> Resolve Auto Layout issues --> Add missing constraints in View Controller
或者
转载于:https://www.cnblogs.com/sunFlowerX/p/4045953.html