title: can't read multiple words from uitextfield
body: <p>I am trying to read the name of a product which is entered by the user in a text field, and add it to a string later. This works fine whenever the user inputs only one word, but when the product is more than one word, the program crashes. When I run the debugger, the value of the NSString product is listed as "variable is not nsstring". This method is triggered when the user hits return after entering the product's name:</p>
  
  <pre><code>-(IBAction)textFieldReturn3:(id)sender
  {
      [sender resignFirstResponder];
      product = inputtext.text;
  }
  </code></pre>
  
  <p>and this is part of the method that is triggered when the user hits a twitter button two scenes later (my goal is to have a certain message displayed already when the user is deciding what to tweet) [and yes, choice is set to either 0 or 3]</p>
  
  <pre><code>- (IBAction)twitter:(id)sender
  {
  TWTweetComposeViewController *twitter = [[TWTweetComposeViewController alloc] init];
  [fmt5 setNumberStyle:NSNumberFormatterDecimalStyle];
  [fmt5 setMaximumFractionDigits:2];
  [fmt5 setMinimumFractionDigits:2];
  if (choice == @"0" || choice == @"3")
  {
      str = @"I just bought a new ";
      str = [str stringByAppendingString:product]; // line where it crashes
      str = [str stringByAppendingString:@" for $"];
      str = [str stringByAppendingString:[fmt5 stringFromNumber:[NSNumber numberWithDouble:myDouble]]];
      [twitter setInitialText:str];
  }
  </code></pre>
  
  <p>How do I fix this problem? Thanks.</p>