'无法在descriptionForLayoutAttribute_layoutItem_coefficient中创建描述。什么都没有

凯尔·金

首先,我获得了3种不同的UIView来替换iPad故事板上的Split View Controller中的细节视图

它可以在iOS8 iPad上很好地运行。但是,当我加载详细视图之一时,该应用在iOS7和iOS 6模拟器中运行时会崩溃。

我只认为这是因为我的故事板上的“自动”布局。

有谁知道如何修理它?

2014-09-25 04:15:19.705 PSTappsperance[48327:60b] Pad AppDelegate ########
2014-09-25 04:15:27.869 PSTappsperance[48327:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil'
*** First throw call stack:
(
0   CoreFoundation                      0x0000000110a5c495 __exceptionPreprocess + 165
1   libobjc.A.dylib                     0x00000001107af99e objc_exception_throw + 43
2   CoreFoundation                      0x0000000110a5c2ad +[NSException raise:format:] + 205
3   Foundation                          0x00000001104ec548 descriptionForLayoutAttribute_layoutItem_coefficient + 145
4   Foundation                          0x00000001104ec3bc -[NSLayoutConstraint equationDescription] + 216
5   Foundation                          0x00000001104ec831 -[NSLayoutConstraint description] + 297
6   CoreFoundation                      0x0000000110a1d1b9 -[NSArray descriptionWithLocale:indent:] + 345
7   Foundation                          0x000000011037e14e _NSDescriptionWithLocaleFunc + 64
8   CoreFoundation                      0x00000001109e1244 __CFStringAppendFormatCore + 7252
9   CoreFoundation                      0x0000000110a1f913 _CFStringCreateWithFormatAndArgumentsAux + 115
10  CoreFoundation                      0x0000000110a7fa5b _CFLogvEx + 123
11  Foundation                          0x00000001103ae276 NSLogv + 79
12  Foundation                          0x00000001103ae20a NSLog + 148
13  UIKit                               0x000000010f927097 -[UIView(UIConstraintBasedLayout_EngineDelegate) engine:willBreakConstraint:dueToMutuallyExclusiveConstraints:] + 62
14  Foundation                          0x00000001104e32ac -[NSISEngine handleUnsatisfiableRowWithHead:body:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 521
15  Foundation                          0x00000001104e49b1 -[NSISEngine tryUsingArtificialVariableToAddConstraintWithMarker:rowBody:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 353
16  Foundation                          0x000000011039c26b -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 663
17  Foundation                          0x00000001104ed180 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 275
18  Foundation                          0x00000001103981b0 -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 204
19  UIKit                               0x000000010f923f41 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 413
20  Foundation                          0x00000001104e529a -[NSISEngine withBehaviors:performModifications:] + 119
21  UIKit                               0x000000010f923d7d __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 401
22  UIKit                               0x000000010f923bc3 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
23  UIKit                               0x000000010f923e57 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 179
24  Foundation                          0x00000001104e529a -[NSISEngine withBehaviors:performModifications:] + 119
25  UIKit                               0x000000010f923d7d __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 401
26  UIKit                               0x000000010f923bc3 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
27  UIKit                               0x000000010f3ab975 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 95
28  Foundation                          0x00000001104e529a -[NSISEngine withBehaviors:performModifications:] + 119
29  UIKit                               0x000000010f3ab889 -[UIView(Hierarchy) _postMovedFromSuperview:] + 321
30  UIKit                               0x000000010f3b52ac -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1508
31  UIKit                               0x000000010f632778 -[UINavigationTransitionView transition:fromView:toView:] + 454
32  UIKit                               0x000000010f6325b0 -[UINavigationTransitionView transition:toView:] + 25
33  UIKit                               0x000000010f46f4d7 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2893
34  UIKit                               0x000000010f46f787 -[UINavigationController _startDeferredTransitionIfNeeded:] + 547
35  UIKit                               0x000000010f470238 -[UINavigationController __viewWillLayoutSubviews] + 43
36  UIKit                               0x000000010f58a895 -[UILayoutContainerView layoutSubviews] + 202
37  UIKit                               0x000000010f3b7993 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 354
38  QuartzCore                          0x000000011427c802 -[CALayer layoutSublayers] + 151
39  QuartzCore                          0x0000000114271369 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 363
40  QuartzCore                          0x00000001142711ea _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
41  QuartzCore                          0x00000001141e4fb8 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 252
42  QuartzCore                          0x00000001141e6030 _ZN2CA11Transaction6commitEv + 394
43  QuartzCore                          0x00000001141e669d _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
44  CoreFoundation                      0x0000000110a27dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
45  CoreFoundation                      0x0000000110a27d37 __CFRunLoopDoObservers + 391
46  CoreFoundation                      0x0000000110a07522 __CFRunLoopRun + 946
47  CoreFoundation                      0x0000000110a06d83 CFRunLoopRunSpecific + 467
48  GraphicsServices                    0x0000000112dbdf04 GSEventRunModal + 161
49  UIKit                               0x000000010f357e33 UIApplicationMain + 1010
50  PSTappsperance                      0x000000010f092653 main + 115
51  libdyld.dylib                       0x00000001114b05fd start + 1
52  ???                                 0x0000000000000001 0x0 + 1
)libc++abi.dylib: terminating with uncaught exception of type NSException
凯尔·金

解决了。这是由于自动版面设计的限制。

有不知道确定其宽度的标签。

但是,为什么只能在iOS 8上运行?我固定了两个约束以确定Xcode 6中的宽度

Trailing Space to: superview
Leading Space to: superview

固定约束时,有一个选项“约束到边距”,这在Xcode 6中是默认选中的。而较早的版本不支持。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法在descriptionForLayoutAttribute_layoutItem_coefficient中创建描述。没什么iOS8

来自分类Dev

无法在descriptionForLayoutAttribute_layoutItem_coefficient中创建描述。没什么iOS8

来自分类Dev

无法更新或升级 Ubuntu。什么都没有(没有新包,什么都没有)

来自分类Dev

在 Android Studio 中创建新文件夹是空的(这里什么都没有)

来自分类Dev

JFrame中什么都没有显示

来自分类Dev

Julia 中的静态成员类型或什么都没有

来自分类Dev

在 Firebase calss Adapter 中什么都没有

来自分类Dev

登录后什么都没有

来自分类Dev

kubuntu 12.04什么都没有?

来自分类Dev

doctest期望什么都没有

来自分类Dev

Shell脚本:什么都没有?

来自分类Dev

UIScrollView:什么都没有滚动

来自分类Dev

什么都没有回来?

来自分类Dev

链接无法点击;没有悬停,什么都没有

来自分类Dev

创建新的 wordpress 页面后,除了 404 之外什么都没有

来自分类Dev

无法启动 GRUB2,启动什么都没有

来自分类Dev

为什么在此python脚本中什么都没有移动?

来自分类Dev

为什么什么都没有出现?

来自分类Dev

为什么$ 1输出什么都没有?

来自分类Dev

为什么LongListSelector selectedItem什么都没有?

来自分类Dev

为什么$ 1输出什么都没有?

来自分类Dev

带有CardView的RecyclerView:什么都没有显示

来自分类Dev

Swift中的SCNScene问题:SCNView中什么都没有显示

来自分类Dev

xdebug未安装在xamp中。phpinfo中什么都没有

来自分类Dev

Swift中的SCNS场景问题:SCNView中什么都没有显示

来自分类Dev

使用Powermail(前端)在Typo3中什么都没有出现

来自分类Dev

水晶报表:水晶报表中什么都没有出现

来自分类Dev

当我尝试在表中添加检查约束时,什么都没有改变

来自分类Dev

GitPython拉后什么都没有出现在工作副本中

Related 相关文章

  1. 1

    无法在descriptionForLayoutAttribute_layoutItem_coefficient中创建描述。没什么iOS8

  2. 2

    无法在descriptionForLayoutAttribute_layoutItem_coefficient中创建描述。没什么iOS8

  3. 3

    无法更新或升级 Ubuntu。什么都没有(没有新包,什么都没有)

  4. 4

    在 Android Studio 中创建新文件夹是空的(这里什么都没有)

  5. 5

    JFrame中什么都没有显示

  6. 6

    Julia 中的静态成员类型或什么都没有

  7. 7

    在 Firebase calss Adapter 中什么都没有

  8. 8

    登录后什么都没有

  9. 9

    kubuntu 12.04什么都没有?

  10. 10

    doctest期望什么都没有

  11. 11

    Shell脚本:什么都没有?

  12. 12

    UIScrollView:什么都没有滚动

  13. 13

    什么都没有回来?

  14. 14

    链接无法点击;没有悬停,什么都没有

  15. 15

    创建新的 wordpress 页面后,除了 404 之外什么都没有

  16. 16

    无法启动 GRUB2,启动什么都没有

  17. 17

    为什么在此python脚本中什么都没有移动?

  18. 18

    为什么什么都没有出现?

  19. 19

    为什么$ 1输出什么都没有?

  20. 20

    为什么LongListSelector selectedItem什么都没有?

  21. 21

    为什么$ 1输出什么都没有?

  22. 22

    带有CardView的RecyclerView:什么都没有显示

  23. 23

    Swift中的SCNScene问题:SCNView中什么都没有显示

  24. 24

    xdebug未安装在xamp中。phpinfo中什么都没有

  25. 25

    Swift中的SCNS场景问题:SCNView中什么都没有显示

  26. 26

    使用Powermail(前端)在Typo3中什么都没有出现

  27. 27

    水晶报表:水晶报表中什么都没有出现

  28. 28

    当我尝试在表中添加检查约束时,什么都没有改变

  29. 29

    GitPython拉后什么都没有出现在工作副本中

热门标签

归档