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

BRDatePickerView中BRDatePickerModeHM 英文下如何显示单位 #231

Open
liunianhuaguoyanxi opened this issue Apr 30, 2021 · 1 comment

Comments

@liunianhuaguoyanxi
Copy link

BRDatePickerView *datePickerView = [[BRDatePickerView alloc]init];
// 2.设置属性
datePickerView.pickerMode = BRDatePickerModeHM;
datePickerView.showUnitType = BRShowUnitTypeAll;
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
NSLog(@"选择的值:%@", selectValue);
};
// 3.显示
[datePickerView show];
中文默认有显示单位,但是英文下无单位
设置了BRShowUnitTypeAll,英文下也没有显示单位

@agiapp
Copy link
Owner

agiapp commented Jun 8, 2021

新增了如下属性:

/**
 *  自定义日期单位
 *  字典格式:@{@"year": @"年", @"month": @"月", @"day": @"日", @"hour": @"时", @"minute": @"分", @"second": @"秒"}
 */
@property (nonatomic, copy) NSDictionary *customUnit;

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