I would like to update a label in one of my ViewControllers from the appDelegate. The Label in the view controller is all linked up in IB and has properties set.
In the AppDelegate .h
I am creating an ivar for the view controller so I can access the label on the view controller from the delegate like this.
someViewController *myView;
and in the AppDelegate.m file
myView.theLabel.text = @"Whatever";
I've also tried myView.theLabel setText: @"whatever";
Ive also tried making myView a property and synthesising it. I've tried the code in applicationDidFinishLaunching
and applicationWillEnterForeground
however the label never updates. Whats the best way to do this?