I’m working in iPad Application and I have a Picker in One XIB, I wanna use the same UIDataPicker to get by separate the date in one UITextField and The Time in a different UITextField.
Example:
UItextField_1 > Here I wanna get only the date
UItextField_2 > Here I wanna get only the time
UIDatePicker > I wanna this picker (only ONE) to get both values.
Some ideas to achieve it?
Any idea is welcome, Thank you very much!
You could set up an event listener using UIControlEventValueChanged in your viewDidLoad method.
Then in that handler you could do something like this:
[Note: this is untested code. It’s only meant to give you an idea of what to do]