0
我正在創建一個單一的視圖應用程序。新的iPhone開發者錯誤
然後在故事板上,我將一個標籤拖到頁面中間。然後設置一個限制是在中間的任何設備上
當我在iPhone視網膜4英寸的它工作正常運行時,我的視網膜3.5英寸我碰到下面的錯誤在iPhone上運行
2014-09-03 11:02:35.136 Testing[3879:60b] 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)
(
"<NSLayoutConstraint:0x8e9b760 V:[_UILayoutGuide:0x8e876a0]-(253)-[UILabel:0x8e99cc0]>",
"<NSLayoutConstraint:0x8e9b790 V:[UILabel:0x8e99cc0]-(274)-[_UILayoutGuide:0x8e9b010]>",
"<_UILayoutSupportConstraint:0x8e9b410 V:[_UILayoutGuide:0x8e876a0(20)]>",
"<_UILayoutSupportConstraint:0x8e98f10 V:|-(0)-[_UILayoutGuide:0x8e876a0] (Names: '|':UIView:0x8e99ae0)>",
"<_UILayoutSupportConstraint:0x8e97de0 V:[_UILayoutGuide:0x8e9b010(0)]>",
"<_UILayoutSupportConstraint:0x8e9b7c0 _UILayoutGuide:0x8e9b010.bottom == UIView:0x8e99ae0.bottom>",
"<NSAutoresizingMaskLayoutConstraint:0x8e9e2e0 h=--& v=--& V:[UIView:0x8e99ae0(480)]>"
)
確實注意到,約束的誤差在最高約束上。可能是因爲酒吧。任何幫助?
有幫助嗎?我是新手,並認爲有人可以快速幫助我這樣的錯誤 – user3278732 2014-09-03 09:11:35