在iOS 7

时间:2016-04-27 13:47:55

标签: ios objective-c ios7 storyboard

我开发了一个使用iOS 9设备进行测试的应用程序,一切都很好,但我还需要兼容 iOS 7

在开始时我加载了一个带有一些按钮的视图控制器,其中一个应该以模态方式呈现另一个控制器,但在iOS 7设备上我得到一个非常奇怪的崩溃:

  

目标:{objective 0x165f98c0:<> +   < 750:-6.61817e-08> * 0x16569cd0.negError {id:118} +   < 999:2> * 0x16569ec0.negError {id:175} +< 999:2> 0x16570520.negError {id:   172} +< 999:1> _UILayoutGuide:0x1655a6c0.Width {id:176} +   < 999:1> * _ UILayoutGuide:0x165a3c70.Width {id:173}} 2016-04-27   15:38:07.483 191PerTe [502:60b] ***由于未被捕获而终止应用程序   例外' NSInternalInconsistencyException',原因:' {行:0x16569ec0.posErrorMarker {id:174} == 0 +   1 * 0x16569ec0.negError {id:175} + 1 * _UILayoutGuide:0x1655a6c0.Width {id:   176} 0x16570520.posErrorMarker {id:171} == 0 +   1 * 0x16570520.negError {id:172} + 1 * _UILayoutGuide:0x165a3c70.Width {id:   173} UITransitionView:0x165a21d0.Height {id:159} == 960 +   1 * 0x165f11b0.marker {id:150} + 2 * 0x1655ed20.marker {id:168}     UITransitionView:0x165a21d0.Width {id:154} == 640 +   1 * 0x1655f650.marker {id:164} UITransitionView:0x165a21d0.minX {id:   162} == 0 + 2 * 0x1658f790.marker {id:161} + -0.5 * 0x1655f650.marker {id:   164} UITransitionView:0x165a21d0.minY {id:163} == 0 +   2 * 0x1655f080.marker {id:167} + -1 * 0x1655ed20.marker {id:168}     UIView:0x1659fb60.Height {id:185} == 960 + 1 * 0x165f11b0.marker {id:   150} + 2 * 0x1655ed20.marker {id:168} + 2 * 0x16559660.marker {id:194}     UIView:0x1659fb60.Width {id:188} == 640 + 1 * 0x1655f650.marker {id:   164} + 2 * 0x1656b160.marker {id:190} UIView:0x1659fb60.minX {id:187}   == 0 + 2 * 0x165596b0.marker {id:186} + -1 * 0x1656b160.marker {id:190} UIView:0x1659fb60.minY {id:189} == 0 + 2 * 0x1656b190.marker {id:193} +   -1 * 0x16559660.marker {id:194} UIWindow:0x165a6fe0.Height {id:141} == 960 + 1 * 0x165f11b0.marker {id:150} UIWindow:0x165a6fe0.Width {id:136}   == 640 + 1 * 0x165ae3a0.marker {id:147} UIWindow:0x165a6fe0.minX {id:144} == 0 + 2 * 0x16588c90.marker {id:143} + -0.5 * 0x165ae3a0.marker {id:   147 UIWindow:0x165a6fe0.minY {id:146} == 0 + 2 * 0x165f4e20.marker {id:   145} + -0.5 * 0x165f11b0.marker {id:150}     _UILayoutGuide:0x1655a6c0.Height {id:182} == 0 +   1 * 0x1656c6a0.marker {id:181} _UILayoutGuide:0x1655a6c0.minY {id:184}   == 960 + 1 * 0x165f11b0.marker {id:150} + 2 * 0x1655ed20.marker {id:168} + -1 * 0x1656c6a0.marker {id:181} + 1 * 0x1656b5f0.marker {id:183} + 2 * 0x16559660.marker {id:194} _UILayoutGuide:0x165a3c70.Height {id:   178} == 40 + 1 * 0x1656af20.marker {id:177}     _UILayoutGuide:0x165a3c70.minY {id:180} == 0 +   1 * 0x165676a0.marker {id:179} objective {id:1} == {objective   0x165f98c0:<> +< 750:-6.61817e-08> * 0x16569cd0.negError {id:118} +   < 999:2> * 0x16569ec0.negError {id:175} +< 999:2> 0x16570520.negError {id:   172} +< 999:1> _UILayoutGuide:0x1655a6c0.Width {id:176} +   < 999:1> * _ UILayoutGuide:0x165a3c70.Width {id:173}}

     

约束:标记:0x16559660.marker {id:194}          标记:0x165596b0.marker {id:186}   (整合调整:3.20747e-06)            标记:0x1655ed20.marker {id:168}          标记:0x1655f080.marker {id:167}          标记:0x1655f650.marker {ID:   164}标记:0x1656b160.marker {id:190}   (积分调整:6.41495e-06)          标记:0x1656b190.marker {id:193}           标记:0x1658f790.marker {id:161}          标记:0x165ae3a0.marker {id:147}          标记:0x165f11b0.marker {id:150}     < _UILayoutSupportConstraint:0x165676a0   V:| - (0) - [_ UILayoutGuide:0x165a3c70](姓名:' |':UIView:0x1659fb60   )>标记:0x165676a0.marker {id:179}     < _UILayoutSupportConstraint:0x16569ec0   H:[_ UILayoutGuide:0x1655a6c0(0 @ 999)]   优先权:999>标记:0x16569ec0.posErrorMarker {id:174}     < _UILayoutSupportConstraint:0x1656af20   五:[_ UILayoutGuide:0x165a3c70(20)] GT;标记:0x1656af20.marker {id:177}     < _UILayoutSupportConstraint:0x1656b5f0   _UILayoutGuide:0x1655a6c0.bottom == UIView:0x1659fb60.bottom>标记:0x1656b5f0.marker {id:183}     < _UILayoutSupportConstraint:0x1656c6a0   五:[_ UILayoutGuide:0x1655a6c0(0)]>标记:0x1656c6a0.marker {id:181}     < _UILayoutSupportConstraint:0x16570520   H:[_ UILayoutGuide:0x165a3c70(0 @ 999)]   优先权:999>标记:0x16570520.posErrorMarker {id:171}     < _UIWindowAnchoringConstraint:0x16588c90 h = --- v = ---   UIWindow:0x165a6fe0.midX == + 160>标记:0x16588c90.marker {id:143}     < _UIWindowAnchoringConstraint:0x165f4e20 h = --- v = ---   UIWindow:0x165a6fe0.midY == + 240>标记:0x165f4e20.marker {id:145}

     

积分调整:0x165596b0.marker {id:186}   [] - >   0.000003 0x1656b160.marker {id:190} [] - >   0.000006

     

统计:18行。可变计数:           1 - > 6           2 - > 10           3 - > 1           5 - > 1}:内部错误。找不到传入头0x16569cd0.negError {id:118}的传出行头,这应该永远不会   发生'   ***第一次抛出调用堆栈:(0x2f3cef83 0x39b7fccf 0x2f3ceec5 0x2fd3a315 0x2fd39e57 0x2fd35b95 0x31beacd3 0x31e832ab 0x31be9bc1   0x31d02f4f 0x31c23d57 0x31c23c73 0x31870111 0x3a06781f 0x3a067777   0x2f3998a1 0x2f398175 0x2f302ebf 0x2f302ca3 0x34208663 0x31c4f14d   0x28f3f 0x3a08cab7)libc ++ abi.dylib:以未捕获的方式终止   NSException类型的异常(lldb)

我已经尝试过:

  • 禁用大小类
  • 重置其他控制器上的所有约束,以模态方式呈现空白视图控制器
  • 显然一切都在iOS 8/9上运行

一些建议?

0 个答案:

没有答案