0

I have an application that uses UIDatePicker & I am facing problem as described below.

Problem
On iOS 5.0, It works perfectly as I need. It is being displayed as follows.

iOS 5.0 Sample DatePicker

Same Application, behaves differently for iOS 4.3 simulator. Added the screen-shot as follows.

enter image description here

I am facing this situation while testing on different versions of simulator ( ** iOS 4.3 & iOS 5.0 **). I do have device having iOS 5.0 only. Does anyone have any idea regarding this problem ?

jrturton
  • 118,105
  • 32
  • 252
  • 268
Nimit Parekh
  • 16,776
  • 8
  • 50
  • 72

2 Answers2

1

This might well due to the Time Zone set in the device. Even if you have set same time, but with different timezone, you would get like this.

Ilanchezhian
  • 17,426
  • 1
  • 53
  • 55
1

It appears that this is a feature of iOS 5. There is a related post where they want the opposite of what you're trying to do, but I believe the same sort of solution should work for you: Remove the "Today" entry from UIDatePicker

Community
  • 1
  • 1
ThomasW
  • 16,981
  • 4
  • 79
  • 106
  • i want to implement this into ios 4.3 my question is how to set the today into ios4.3 – Nimit Parekh Feb 10 '12 at 07:43
  • If you follow the solution given at that link you should be able to get what you want, but it is not a trivial task. It involves essentially reimplementing the UIDatePicker. But if getting "Today" is really important to you then that is one way to go. – ThomasW Feb 10 '12 at 08:37