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

iPhoneXs 指定时间后,首次进入界面,中间行显示不对齐。 #176

Open
samuelandkevin opened this issue Dec 10, 2019 · 5 comments

Comments

@samuelandkevin
Copy link

打开注释代码:
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm";

datePicker.minimumDate = [dateFormatter dateFromString: @"2018-02-01 05:04"];
datePicker.maximumDate = [dateFormatter dateFromString: @"2028-02-01 05:04"];

NSDate *date = [dateFormatter dateFromString: @"2020-02-01 05:04"];
[datePicker setDate:date animated: true];

结果:
中间行显示不对齐

@douxindong
Copy link

遇到同样的问题

@Andrew5
Copy link

Andrew5 commented Sep 27, 2022

遇到同样的问题

wx20170601

我也是 日期对不齐,你是怎么解决的啊

@douxindong
Copy link

douxindong commented Sep 27, 2022 via email

@Andrew5
Copy link

Andrew5 commented Sep 27, 2022

想问问如何解决呢 这个问题: https://github.com/Andrew5/LearnSwift/blob/main/截屏2022-09-27%2012.39.47.png 为什么会出现这个情况呢?应该如何修复呢

@douxindong
Copy link

换了个日期选择器【BRPickerView】https://github.com/91renb/BRPickerView

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

3 participants