title: Change Label Text
body: <p>How can I change a label's text? This is what I have tried.</p>
  
  <pre><code>labelCheckBox.text = @"This is the new label";
  </code></pre>
  
  <p>I connected the label in Interface builder for labelCheckBox and created an outlet for it. In the Didload the label's text changed, but in another method inside the class it does not have the new value.</p>
  
  <pre><code>-(void)settext:(NSString*)newLabelText{
  
  labelCheckBox.text = newLabelText;
   //    labelCheckBox = [[UILabel alloc] init];
  //    labelCheckBox.text = @"This is the new label";
  
  } 
  </code></pre>
  
  <p>I am calling the method in another class as shown here:</p>
  
  <pre><code>    [New settext:@"All Transaction"];
  </code></pre>
  
  <p>The value of '<code>NewLabelText</code>' after printing it in NSLog is: " <code>All Transaction</code> ". But when I assign ' <code>LabelCheckBox.Text = NewLabelText</code> ', I print the value of '<code>LabelCheckBox.Text</code>',
  and it gives empty.</p>