BRPickerView icon indicating copy to clipboard operation
BRPickerView copied to clipboard

运行demo,选择出生日期或出生时刻,崩溃了

Open ShuangZiMoYin opened this issue 7 years ago • 1 comments

Assertion failure in -[BRDatePickerView initWithTitle:dateType:defaultSelValue:minDate:maxDate:isAutoSelect:themeColor:resultBlock:cancelBlock:], /Users/liuxiaowen/Downloads/BRPickerView-master/BRPickerView/DatePickerView/BRDatePickerView.m:176 2018-11-27 10:41:50.312 BRPickerViewDemo[16458:476614] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '默认选择的日期不能小于最小日期!'

ShuangZiMoYin avatar Nov 27 '18 02:11 ShuangZiMoYin

看调试信息,默认选择的日期不能小于最小日期,选择的日期不要超出设置的范围。这个只是在debug模式下才会出现,release模式下会自动重置超出范围的值,不会crash

agiapp avatar Nov 27 '18 04:11 agiapp