UIDatePicker issue in iOS9

后端 未结 1 1786
深忆病人
深忆病人 2021-02-02 03:06

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

This issue is only in xoode7(iOS9)

Can any one help me to solve my issue??

1条回答
  •  再見小時候
    2021-02-02 03:51

    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.

    0 讨论(0)
提交回复
热议问题