UIDatePicker issue in iOS9

2019-03-10 19:25发布

Date is hiding in UIDatePicker in iOS9. i am using xib.

This issue is only in xoode7(iOS9)

enter image description here Can any one help me to solve my issue??

1条回答
Lonely孤独者°
2楼-- · 2019-03-10 19:43

I think this is problem with new font San Francisco (the font is big than Helvetica ) and .xib file. It can be hacked around by changing the UIDatePicker mode right before it was displayed, and then changing it back to the desired one:

[myDatePicker setDatePickerMode:UIDatePickerModeDateAndTime];
[myDatePicker setDatePickerMode:UIDatePickerModeDate];

Also try adding DatePicker programmatically.

I think its a bug in iOS 9 with new font.

查看更多
登录 后发表回答