当出现The selected views have no constraints. At build time, explicit left, top, width, and height constraints will be generated for the viewsh时候

Editor --> Resolve Auto Layout issues --> Add missing constraints in View Controller可解决