Novice question. I'm building an app and I want to call a method that I've declared in a ViewController - from the AppDelegate (on applicationDidBecomeActive).
So basically, In TestAppDelegate.m I have...
- (void)applicationDidBecomeActive:(UIApplication *)application { // I want to call a method called "dothisthing" that I've defined in FirstViewController.m // This does not work: [FirstViewController dothisthing] }
In FirstViewController.m I have...
- (void) dothisthing { NSLog(@"dothisthing"); }
This is my first iPhone app, so any help would be appreciated.