Skip to content
New issue

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

BRDatePickerStyleSystem系统样式切换BRDatePickerMode,没有效果 #138

Closed
SSPSource opened this issue Apr 18, 2020 · 1 comment
Closed

Comments

@SSPSource
Copy link

您好,感谢分享源码,发现用系统样式,切换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解决此问题,依然希望源主可以更新代码,供后面人员使用。谢谢

agiapp added a commit that referenced this issue Apr 27, 2020
@agiapp
Copy link
Owner

agiapp commented Apr 27, 2020

多谢提醒,已修复。请更新到最新版本

@agiapp agiapp closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants