title: XCode UITextField
body: <p>Inside the <strong>.h</strong>:</p>
  
  <pre><code>@interface MyController : UIViewController&lt;UITextFieldDelegate&gt; {
  
     IBOutlet UITextField *phonenum;
     IBOutlet UITextField *email;
  }
  
  @property (nonatomic, retain) UITextField *phonenum;
  @property (nonatomic, retain) UITextField *email;
  
  -(IBAction) btnClicked: (id) sender;
  @end
  </code></pre>
  
  <p>Inside the <strong>.m</strong>:</p>
  
  <pre><code>-(IBAction) btnClicked: (id) sender{
  
  
  NSString *str = [[NSString alloc]init];
  NSLog(@"str=%@",str);  //this contains valid value
  email.text=str;  /// does not set the value
  [[self email] setText: str];  // does not set the value
  }
  </code></pre>
  
  <p>What am i doing wrong where it does not set the UITextField value using the variable str that is NSString?  Is this some kind of Inteface Builder setting?  I have delegate link to file owner.</p>