Hihi all,
I have a fixed row tableView with several TextFields in it for editing purposes. 2 of the fields are for date input. I can call out the datePicker when focus on the 2 fields, but how can I set the selected date into the correspondent TextField?
In my datePickerValueChanged method, how can I know which TextField is currently being edited with the UIDatePicker?
Please help. Great thanks in advance!
🙂
you can try this: in .h file take a variable of
UITextField *activeTextFieldnow innow you can have active text field. Now you can manipulate it in
datePickerValueChangedmethodHope it helps you.