iphone ios 7.x vs ios 6.x限制

时间:2014-07-11 15:46:35

标签: ios7 ios6 constraints autolayout

在iOS 7.x上有一个UI工作正常但在iOS 6.x上获得约束中断的情况。想知道为什么在完全相同的UI自动布局等方面存在这样的差异

以下是iOS 6.x中断的示例

Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x17e91390 V:[UIView:0x17ecb3b0]-(0)-|   (Names: '|':XxxCollectionViewCollectionViewCell:0x17eca520 )>

Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2014-07-11 11:39:33.886 XXXXX[25856:c07] 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) 

(
"<NSAutoresizingMaskLayoutConstraint:0x17ecaf40 h=--& v=-&& XxxCollectionViewCollectionViewCell:0x17eca520.height == 34*UICollectionView:0xe294400.height - 20740>",
"<NSAutoresizingMaskLayoutConstraint:0x1660b530 h=-&- v=-&- UINavigationTransitionView:0xbaf7b60.height == UILayoutContainerView:0xbaf6f80.height>",
"<NSAutoresizingMaskLayoutConstraint:0xd24fec0 h=-&- v=-&- UICollectionView:0xe294400.height == UIView:0x17ed5da0.height>",
"<NSAutoresizingMaskLayoutConstraint:0xd257470 h=-&- v=-&- UIViewControllerWrapperView:0xbe75e80.height == UINavigationTransitionView:0xbaf7b60.height - 64>",
"<NSAutoresizingMaskLayoutConstraint:0xd233b30 h=-&- v=-&- UIView:0x17ed5da0.height == UIViewControllerWrapperView:0xbe75e80.height>",
"<NSAutoresizingMaskLayoutConstraint:0xba5ea50 h=-&- v=-&- UILayoutContainerView:0xbaf6f80.height == VoiceTouchOverlayWindow:0xbec7fb0.height>",
"<NSAutoresizingMaskLayoutConstraint:0xba5d4b0 h=--- v=--- V:[VoiceTouchOverlayWindow:0xbec7fb0(480)]>"
)

0 个答案:

没有答案