2015-08-25 67 views
1

當我跑我的工作應用上我,說控制檯得到一個消息Xcode是無法同時滿足的約束

Unable to simultaneously satisfy constraints. 
Probably at least one of the constraints in the following list is one you `don't want. 
Try this: (1) look at each constraint and try to figure out which you don't 
expect; (2) find the code that added the unwanted constraint or constraints and 
fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you 
don't understand, refer to the documentation for the UIView property 
translatesAutoresizingMaskIntoConstraints)` 

Constraint error in the Xcode debugging console

我只有與制約因素的背景圖片對於height,width,trailing space,leading space,top spacebottom space。圖像的大小爲321 X 571,641 X 1137和960×1704

Constraints for image

回答

1

我給你一個簡單的建議:嘗試刪除所有的約束和補充一些他們中的一個一步來。

...但我懷疑,這個問題是可能的heighttop spacebottom space到一個單一的形象:如果你的形象應該有一個高度不能同時尊重底部和頂部空間在所有屏幕尺寸沒有任何優先級設置爲約束條件。如果你在這種情況下,你至少需要刪除一個約束。

我希望這可以幫助,否則添加更多信息到您的問題。

相關問題