title: Xcode 4.6 how to assign the text of a label to an NSString variable
body: <p>I have an app that has a label in an xib, which contains text.  I would like to assign the text to an NSString for use in other areas of the View.  My attempt to accomplish this is:</p>
  
  <ul>
  <li>In the xib, select the label, show the Identity Inspector, and under Document, fill in the Label field with the desired label name - example: mylabelname</li>
  <li><p>In the .m file, of the same name as the xib, inside a method, assign the value of the label to the variable, example: mytextfield</p>
  
  <p>NSString  *mytextfield =[mylabelname.text];</p></li>
  </ul>
  
  <p>I get an error on the above - Use of undeclared identified 'mylabelname'.</p>
  
  <p>From my research, I think I want to do something like this in my label:</p>
  
  <pre><code>[label mytextfield: mylabelname.text];
  </code></pre>
  
  <p>Or something similar, but I am not sure how, or where.  Can anyone provide me some pointers or guidance on this?  I bet this is simple, but I have not been able to figure it out.</p>
  
  <p>Thanks!
  Rob</p>