8

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

Akash Raghani
  • 557
  • 1
  • 9
  • 21

1 Answers1

19

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.

iAhmed
  • 6,556
  • 2
  • 25
  • 31
  • adding date picker programmatically i have get date formate like this :-mm/dd/yyyy but i want dd/mm/yyyy formate. i want as per i have shown image above – Akash Raghani Sep 22 '15 at 13:08
  • You can change format as well. http://stackoverflow.com/questions/13952063/how-to-change-the-format-of-date-in-date-picker – iAhmed Sep 23 '15 at 07:47
  • 1
    Incredible. I solved the "UIDatePicker inside UITAbleViewCell" problem sometime ago (http://stackoverflow.com/a/32899795/433373), and just realized it was broken again for no apparent reason. This did the trick! Have my vote. – Nicolas Miari Oct 23 '15 at 09:47
  • My date picker in ios9 has become very very small not even showing properly. I also tried to set it to UIDatePickerModeDateAndTime but not working. – Harish Pathak Nov 19 '15 at 12:41
  • 1
    Amazing and sad, all wrapped into one! You're my hero. – steve Nov 28 '15 at 02:58