title: UILabel.text doesn't add the the NSString and stays null
body: <p>I wanted to add a string to a label and tried different things.</p>
  <p>So this is what my code looks like:</p>
  <pre><code>@interface DeviceControl : UIViewController
  
  @property (weak, nonatomic) IBOutlet UIView *intensityLevelView;
  @property (weak, nonatomic) UILabel *intensityLabel;
  
  - (IBAction)intensitySliderDragged:(id)sender
  
  @end
  
  @synthesize intensityLabel;
  @synthesize intensityLevelView;
  
  - (IBAction)intensitySliderDragged:(id)sender {
  
  intensityLevel = intensitySlider.value;
  
  int newIntensityLevel = (int)intensityLevel; //because intensityLevel is a float and I needed an integer.
  intensityLabel = (UILabel*)[intensityLevelView viewWithTag:10];
  NSString *string = [NSString stringWithFormat:@&quot;Intensity is at %d&quot;,newIntensityLevel];
  intensityLabel.text = string;
  NSLog(@&quot;string = %@&quot;, string);
  NSLog(@&quot;label text = %@&quot;,intensityLabel.text);
  }
  </code></pre>
  <p>That didn't work so I tried these too:</p>
  <pre><code>intensityLabel.text = [intensityLabel.text stringByAppendingFormat:@&quot;%d&quot;,newIntensityLevel];
  
  intensityLabel.text = [NSString stringWithFormat:@&quot;Intensity is at %d&quot;, newIntensityLevel];
  </code></pre>
  <p>And I was so frustrated that I even tried this if that worked:</p>
  <pre><code>intensityLabel.text = @&quot;damn&quot;; //it didn't worked...
  </code></pre>
  <p>My console prints</p>
  <blockquote>
  <p>2017-04-19 10:47:58.849359+0800 string = Intensity is at 100</p>
  <p>2017-04-19 10:47:58.849484+0800 label text = (null)</p>
  </blockquote>
  <p>So what am I doing wrong? Why the label.text stays null?</p>