我目前正在使用使用Swift 4和xcode 9.4的WKWebView的iOS应用程序,网页加载正常,但是当我单击键盘的任何html输入时,它会崩溃。
UIViewAlertForUnsatisfiableConstraints 错误
据我所知,我试图设置约束,但是没有任何效果。下面是来自xcode命令的错误
UIToolbar: 0x7ff5b770b9a0; frame = (0 0; 0 44); autoresize = W+H; layer = CALayer: 0x600000420420
NSArrayM 0x60000064b460(NSLayoutConstraint:0x604000282d50'UIView-leftMargin-guide-constraint'H:|-(0)-UILayoutGuide:0x6040001a1960'UIViewLayoutMarginsGuide'(活动,名称:'|':_ UIButtonBarStackView:0x7ff5b770bbf0), NSLayoutConstraint:0x604000282df0'UIView-rightMargin-guide-constraint'H:[UILayoutGuide:0x6040001a1960'UIViewLayoutMarginsGuide']-(0)-|(LTR)(活动,名称:'|':_ UIButtonBarStackView:0x7ff5b770bbf0) NSLayoutConstraint:0x604000283020 H:|-(0)-[_ UIButtonBarStackView:0x7ff5b770bbf0](活动,名称:'|':_ UIToolbarContentView:0x7ff5b7607c60) NSLayoutConstraint:0x604000283070 _UIButtonBarStackView:0x7ff5b770bbf0.trailing == _UIToolbarContentView:0x7ff5b7607c60.trailing + 8(active)NSLayoutConstraint:0x60400028d7a0 H:|-(0)-[_ UIModernBarButton:0x7ff5b7736(0_7)'[_UIModernBarButton:0x7ff5b7736(0) NSLayoutConstraint:0x60400028d7f0 H:[_ UIModernBarButton:0x7ff5b7736aa0]-(> = 8)-| (活动,名称:'|':_ UIButtonBarButton:0x7ff5b7736310)NSLayoutConstraint:0x60000029aa40 H:|-(> = 5)-[_ UIModernBarButton:0x7ff5b7534c90](活动,名称:'|':_ UIButtonBarButton:0x7ff5b77385b0) NSLayoutConstraint:0x600000289fb0 H:[_ UIModernBarButton:0x7ff5b7534c90]-(> = 5)-| (活动的,名称:'|':_ UIButtonBarButton:0x7ff5b77385b0) NSLayoutConstraint:0x60000029c480 H:|-(8)-[_ UIModernBarButton:0x7ff5b7535c20'Done'](活动,名称:'|':_ UIButtonBarButton:0x7ff5b75357d0) NSLayoutConstraint:0x60000029c4d0 H:[_ UIModernBarButton:0x7ff5b7535c20'Done']-(0)-| (活动的,名称:'|':_ UIButtonBarButton:0x7ff5b75357d0) NSLayoutConstraint:0x60000029c890'UISV-canvas-connection'UILayoutGuide:0x6040001a1960'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7ff5b7736310。Leading(正在使用) NSLayoutConstraint:0x60000029cf70'UISV-canvas-connection'UILayoutGuide:0x6040001a1960'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7ff5b75357d0.trailing(活动) NSLayoutConstraint:0x60000029d0b0'UISV-spacing'H:[_ UIButtonBarButton:0x7ff5b7736310]-(0)-[UIView:0x7ff5b77383c0](处于活动状态) NSLayoutConstraint:0x60000029d150'UISV-spacing'H:[UIView:0x7ff5b77383c0]-(0)-[_ UIButtonBarButton:0x7ff5b77385b0](处于活动状态) NSLayoutConstraint:0x60000029d1f0'UISV-spacing'H:[_ UIButtonBarButton:0x7ff5b77385b0]-(0)-[UIView:0x7ff5b75355e0](有效) NSLayoutConstraint:0x60000029d240'UISV-spacing'H:[UIView:0x7ff5b75355e0]-(0)-[_ UIButtonBarButton:0x7ff5b75357d0](处于活动状态) NSAutoresizingMaskLayoutConstraint:0x60000029d6f0 h =-&-v =-&-_UIToolbarContentView:0x7ff5b7607c60.width == UIToolbar:0x7ff5b770b9a0.width(活动) NSLayoutConstraint:0x60000029d7e0'UIView-Encapsulated-Layout-Width'UIToolbar:0x7ff5b770b9a0.width == 0(活动)