We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,感谢分享源码,发现用系统样式,切换BRDatePickerMode,没有起到效果。 - (void)setPickerMode:(BRDatePickerMode)pickerMode { _pickerMode = pickerMode; // 非空,表示二次设置 if (_datePicker || _pickerView) { [self setupDateFormatter:pickerMode]; // 刷新选择器数据 [self reloadData]; if (self.style == BRDatePickerStyleCustom && self.showUnitType == BRShowUnitTypeOnlyCenter) { // 添加时间单位到选择器 [self addUnitLabel]; } } }方法中设置[self setupDateFormatter:pickerMode];虽然_datePickerMode赋值,但是并未对 _datePicker.datePickerMode = _datePickerMode;更新,导致实际没有效果,必须重新初始化UIDatePicker才可以使用,虽然我这边已通过自定义picker解决此问题,依然希望源主可以更新代码,供后面人员使用。谢谢
- (void)setPickerMode:(BRDatePickerMode)pickerMode { _pickerMode = pickerMode; // 非空,表示二次设置 if (_datePicker || _pickerView) { [self setupDateFormatter:pickerMode]; // 刷新选择器数据 [self reloadData]; if (self.style == BRDatePickerStyleCustom && self.showUnitType == BRShowUnitTypeOnlyCenter) { // 添加时间单位到选择器 [self addUnitLabel]; } } }
The text was updated successfully, but these errors were encountered:
fixbug: #138 and #142
ba951cc
多谢提醒,已修复。请更新到最新版本
Sorry, something went wrong.
No branches or pull requests
您好,感谢分享源码,发现用系统样式,切换BRDatePickerMode,没有起到效果。
- (void)setPickerMode:(BRDatePickerMode)pickerMode { _pickerMode = pickerMode; // 非空,表示二次设置 if (_datePicker || _pickerView) { [self setupDateFormatter:pickerMode]; // 刷新选择器数据 [self reloadData]; if (self.style == BRDatePickerStyleCustom && self.showUnitType == BRShowUnitTypeOnlyCenter) { // 添加时间单位到选择器 [self addUnitLabel]; } } }
方法中设置[self setupDateFormatter:pickerMode];虽然_datePickerMode赋值,但是并未对 _datePicker.datePickerMode = _datePickerMode;更新,导致实际没有效果,必须重新初始化UIDatePicker才可以使用,虽然我这边已通过自定义picker解决此问题,依然希望源主可以更新代码,供后面人员使用。谢谢The text was updated successfully, but these errors were encountered: