I have a working application which I am just trying to enhance. It's a simple Table View controller which has a plus button; the user clicks that and is modally presented with an Add Entry View Controller which contains a UIDatePicker and 4 text fields.
Right now, the text fields behave normally; you click on them and the keyboard comes up.
I am enhancing my application though to be so that a user taps TextField 1 and is taken modally to a new TableViewController, where they'd essentially be able to Create new entries or select existing ones.
If the user clicks textField 2, they'd go modally to the Table View Controller for that text field (which is different to the first Table View).
How would I go about doing this?
Right now, I have added in a modal segue in the story board for the first text field and when clicking that text field in the running application, the keyboard appears. However, as soon as I dismiss the keyboard, the new table view controller gets modally presented. I want to eliminate the keyboard appearing and show just the table view modally.
Attempting the code below meant I could not modally go to any table view or not pull up the keyboard for any text field because it's not distinguishing between text fields.
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
return NO;
}
Any assistance on differentiating between the text fields to call modally different table views would be really helpful.
Thanks