I receive crash report.
But I have no idea about this.
Crashed: com.apple.main-thread 0 libobjc.A.dylib
0x180a9db90 objc_msgSend + 16 1 CoreFoundation
0x18130ea0c -[NSMutableArray insertObjects:count:atIndex:] + 160 2 CoreFoundation 0x18130e744 -[NSMutableArray insertObjectsFromArray:range:atIndex:] + 320 3 CoreFoundation
0x18130e5d4 -[NSMutableArray addObjectsFromArray:] + 652 4 UIKit
0x18668cc08 -[UIView(AdditionalLayoutSupport) _accumulateViewConstraintsIntoArray:] + 104 5 UIKit 0x18657f3f4 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 124 6 UIKit 0x1866cd9d4 -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 640 7 UIKit 0x186695964 -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 192 8 UIKit 0x18657f578 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 196 9 UIKit 0x18657f7ac -[UIView(Internal) _didMoveFromWindow:toWindow:] + 760 10 UIKit 0x18657ed40 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 152 11 UIKit 0x18657eba8 -[UIView(Hierarchy) _postMovedFromSuperview:] + 504 12 UIKit 0x18658c678 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1784 13 UIKit 0x18664eda0 -[UINavigationTransitionView transition:fromView:toView:] + 620 14 UIKit 0x186644d48 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2696 15 UIKit 0x186643ef4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 868 16 UIKit 0x186643b1c -[UINavigationController __viewWillLayoutSubviews] + 60 17 UIKit 0x186643a84 -[UILayoutContainerView layoutSubviews] + 208 18 UIKit 0x1865801e4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656 19 QuartzCore 0x183f12994 -[CALayer layoutSublayers] + 148 20 QuartzCore
0x183f0d5d0 CA::Layer::layout_if_needed(CA::Transaction*) + 292 21 QuartzCore 0x183f0d490 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32 22 QuartzCore 0x183f0cac0 CA::Context::commit_transaction(CA::Transaction*) + 252 23 QuartzCore 0x183f0c820 CA::Transaction::commit() + 500 24 QuartzCore
0x183f05de4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) +
Here is my code.
[self.customConstraints addObjectsFromArray: [NSLayoutConstraint constraintsWithVisualFormat: @"H:|[view]|" options:0 metrics:nil views:views]];
Aucun commentaire:
Enregistrer un commentaire