title: Can't set UILabel Text Programmatically
body: <p>In my iOS app, I'm trying to set the text of a UILabel in another view.</p>
  
  <p>I do this by passing a NSNotification to the viewController when it should be updated.  I know it is receiving the message correctly because I log the message, but it just isn't appearing in the UILabel (which I added in the storyboard).</p>
  
  <p>This is my code:</p>
  
  <p><strong>ProcessingViewController.h</strong></p>
  
  <pre><code>@property (weak, nonatomic) IBOutlet UILabel *progressMessage;
  </code></pre>
  
  <p><strong>ProcessingViewController.m</strong></p>
  
  <pre><code>- (void)viewDidLoad {
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateProgressDialog:) name:@"uploadProgress" object:nil];
  }
  
  -(void) updateProgressDialog: (NSNotification *) notification{
      NSString *message = [notification object];
      NSLog(@"received updateProgressDialog message of %@", message);
      self.progressMessage.text = message;
      [self.progressMessage setNeedsDisplay];
  }
  </code></pre>
  
  <p>My storyboard:</p>
  
  <p><img src="https://i.stack.imgur.com/OF60A.png" alt="enter image description here"></p>