I have a weird setup.
I have a View call 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 as subview.
In my Viewcontroller, I have viewController1 : UIViewController
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