title: Calling view controller method from app delegate
body: <p>I'm trying to call a method in the view controller from the app delegate, but Xcode says <em>No known class method for selector 'myMethodHere'.</em> Here's my code:</p>
  
  <p>AppDelegate.m:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      [..]
              [MainViewController myMethodHere];
      [..]
      return YES;
  }
  </code></pre>
  
  <p>MainViewController.m:</p>
  
  <pre><code>-(void) myMethodHere {
       [..]
  }
  </code></pre>