Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDatePicker issue in iOS9

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??

like image 605
Akash Raghani Avatar asked Sep 22 '15 12:09

Akash Raghani


1 Answers

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.

like image 91
iAhmed Avatar answered Oct 11 '22 16:10

iAhmed