2014-09-03 77 views
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)]>" 

确实注意到,约束的误差在最高约束上。可能是因为酒吧。任何帮助?

+0

有帮助吗?我是新手,并认为有人可以快速帮助我这样的错误 – user3278732 2014-09-03 09:11:35

回答

0

好的,自己解决。

只需要苹果视网膜英寸3.5形状因子,而不是视网膜英寸4.0形状因子。