title: Retaining value from textbox in an NSString
body: <p>Here's my .h file: </p>
  
  <p>The IBOutlet I am having problems with is the textbox. I would like to retain the value in the textbox as an NSString:</p>
  
  <pre><code>@interface UploaderViewController : UIViewController &lt;UINavigationControllerDelegate, UIImagePickerControllerDelegate&gt; {
      IBOutlet UIImageView *imageView;
      IBOutlet UITextField *textCaption;
      NSString *caption;
  }
  
  - (IBAction)pushPick;
  - (IBAction)pushUpload;
  @property (nonatomic, retain) IBOutlet UITextField *textCaption;
  
  @end
  </code></pre>
  
  <p>Where the value is stored in this NSString:</p>
  
  <pre><code>- (IBAction)pushUpload {
      caption = textCaption.text;
  }
  </code></pre>