Exception NSException * "Set `maskView` (<UIView: 0x1149957a0; frame = (0 0; 393 852); autoresize = W+RM+H+BM; gestureRecognizers = <NSArray: 0x600000053730>; backgroundColor = <UIDynamicProviderColor: 0x6000003c1180; provider = <__NSMallocBlock__: 0x600000e3ba50>>; layer = <CALayer: 0x6000003c0ac0>>) to `nil` before adding it as a subview of <BRDatePickerView: 0x114966fc0; frame = (0 0; 393 852); autoresize = W+RM+H+BM; layer = <CALayer: 0x6000003f76e0>>" 0x0000600000e2d4d0
iOS 18 UIView的maskView 属性,代码的属性名和系统的属性名冲突了。
解决办法
maskView属性重命名