I have a weird setup.
I have a View
called View1 and a ViewController
call viewController1
in IB
, View1 is a child of the ViewController1.
Inside View1, I created using code a UITextField
and added as a subview.
In my Viewcontroller
, I have viewController1 : UIViewController <UITextFieldDelegate>
Now.. I would like to resign the keyboard when the text field within View1 gets the "Done" button in the keyboard so I have
- (BOOL)textFieldShouldReturn:(UITextField *)TEXTFIELD {
[TEXTFIELD resignFirstResponder];
}
Now the question is, how do I make the connection between TEXTFIELD (defined in my viewcontroller) and the textfield defined in my View?
Do I have to do something in interfaceBuilder?
maybe I am totally off here....
Some hints greatly appreciated