Problem with UIDatePicker in iOS9

Date hiding in UIDatePicker in iOS9. I am using xib.

This issue is only available in xoode7 (iOS9)

enter image description here Can someone help me solve my problem?

+8
ios objective-c ios9 uidatepicker
source share
1 answer

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

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

Also try adding DatePicker programmatically.

I think this is a bug in iOS 9 with a new font.

+19
source share

All Articles