1. 程式人生 > >The methods in the UIConstraintBasedLayoutDebugging category on UIView listed

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed

是否還記得我說過對於view來說必須要有足夠多的constraint,那麼Auto Layout才能計算出所有view的位置以及尺寸?那麼,現在這個例子的情況是它有太多的constraints了。無論何時當你得到錯誤 “Unable to simultaneously satisfy constraints”時, 這在暗示你的constraints在某些地方起衝突了