UiTextField and resignFirstResponder
<p>I have a weird setup.</p>

<p>I have a View call View1 and a ViewController call viewController1</p>

<p>in IB, view1 is a child of the ViewController1.</p>

<p>Inside View1, I created using code a UiTextField and added as as subview.</p>

<p>In my Viewcontroller, I have viewController1 : UIViewController </p>

<p>Now.. I would like to resign the keyboard when the text field within View1 gets the "Done" button in the keyboard so I have </p>

<ul>
<li>(BOOL)textFieldShouldReturn:(UITextField *)TEXTFIELD {
[TEXTFIELD resignFirstResponder];
}</li>
</ul>

<p>Now the question is, how do I make the connection between TEXTFIELD (defined in my viewcontroller) and the textfield defined in my View?</p>

<p>Do I have to do something in interfaceBuilder?</p>

<p>maybe I am totally off here....</p>

<p>Some hints greatly appreciated</p>
