I have a method called -(IBAction)setPicker:(id) sender
Basically this method substitutes a keyboard into a datePicker when called upon. I want this to happen (aka the method setPicker to be called) as soon as the user touches the text field trying to input something. The problem is that no matter what event I link it too, it does not end up calling the method.
I tried connecting the text field to the event “touch up inside” (thought I could do it the same way as I would for a button but no luck).
Does anyone have any suggestions or ideas on how this can be done?
Thanks!
Implement UITextFieldDelegate.
Implement the method
from
UITextFieldDelegate.Show your datepicker when this delegate method get called.