ibireme / YYKit

A collection of iOS components.
MIT License
13.99k stars 3.7k forks source link

iOS11.3 崩溃问题 #470

Open yunshuai opened 6 years ago

yunshuai commented 6 years ago

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.'

willokyes commented 6 years ago

请告知下崩溃时的环境: iOS 版本,模拟器版本等

status302 commented 6 years ago

@yunshuai @willokyes 可参考这个 PR 解决