agiapp / BRPickerView

BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
https://github.com/agiapp/BRPickerView
MIT License
2.57k stars 446 forks source link

在iOS 18 上崩溃 #314

Closed Asingers closed 4 months ago

Asingers commented 4 months ago

*** Assertion failure in -[BRStringPickerView _addSubview:positioned:relativeTo:], UIView.m:18428 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'SetmaskView(<UIView: 0x15eee3640; frame = (0 0; 414 896); autoresize = W+RM+H+BM; gestureRecognizers = <NSArray: 0x3028a1170>; backgroundColor = <UIDynamicProviderColor: 0x302a76ec0; provider = <__NSMallocBlock__: 0x3024cf6f0>>; layer = <CALayer: 0x302a11580>>) tonilbefore adding it as a subview of <BRStringPickerView: 0x15f16fc00; frame = (0 0; 414 896); autoresize = W+RM+H+BM; layer = <CALayer: 0x302a15b80>>'

ClockCake commented 4 months ago
agiapp commented 4 months ago

已修复,请更新到最新版本进行使用。奔溃原因是maskView自定义视图命名与UIView的属性命名冲突。