YYKitDemo里面一点击Text里面的Text Edit就崩溃
崩溃信息如下:
2018-05-02 11:53:53.245985+0800 YYKitDemo[384:47509] Assertion failure in -[UIVisualEffectView _addSubview:positioned:relativeTo:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.52.10/UIVisualEffectView.m:1558
2018-05-02 11:53:53.250730+0800 YYKitDemo[384:47509] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<UILabel: 0x104c40a50; frame = (10 0; 54.9102 40); text = 'Vertical:'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x104c3f8e0>> has been added as a subview to <UIVisualEffectView: 0x104c3b620; frame = (0 64; 375 40); layer = <CALayer: 0x104c3b880>>. Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.'
YYKitDemo里面一点击Text里面的Text Edit就崩溃 崩溃信息如下: 2018-05-02 11:53:53.245985+0800 YYKitDemo[384:47509] Assertion failure in -[UIVisualEffectView _addSubview:positioned:relativeTo:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.52.10/UIVisualEffectView.m:1558 2018-05-02 11:53:53.250730+0800 YYKitDemo[384:47509] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<UILabel: 0x104c40a50; frame = (10 0; 54.9102 40); text = 'Vertical:'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x104c3f8e0>> has been added as a subview to <UIVisualEffectView: 0x104c3b620; frame = (0 64; 375 40); layer = <CALayer: 0x104c3b880>>. Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.'