title: Call function in another View controller
body: <p>In ViewController 1 I'm calling a function "changeButtonMessage" which is in ViewController 2 which should change the text of an UILabel. The function is being called (the NSLog works) but the label isn't being changed. Thanks for any help.</p>
  
  <p>ViewController 1</p>
  
  <pre><code>loadingViewController *controller;
  controller = [[loadingViewController alloc] init];
  NSString *mymsg = [NSString stringWithFormat: @"Loading"]; 
  [controller changeButtonMessage:mymsg];
  </code></pre>
  
  <p>ViewController 2</p>
  
  <pre><code>@property (nonatomic, retain) IBOutlet UILabel *loadingtxt;
  - (IBAction)changeButtonMessage:(id)sender;
  
  @synthesize loadingtxt;
  
  -(void)changeButtonMessage: (NSString*) newMessage {
  
       loadingtxt.text = newMessage;
       NSLog(@"Change label to %@",newMessage);
  
  }
  </code></pre>