title: Need to call methods in other viewControllers from another viewController
body: <p>I have an app that has multiple viewControllers, where some of these viewControllers contain methods that run various tasks.  What I need to do is when the initial viewController loads, is to call these methods in the other viewControllers such that they run in the background, however, I am having some difficulty doing this.</p>
  
  <p>Let's say I have 4 viewControllers, A, B, C, &amp; D, where A is the initial viewController, and in each viewController, I have aMethod, bMethod, cMethod, and dMethod respectively.  Here is the relevant code:</p>
  
  <p>Inside my opening viewController (AviewController):</p>
  
  <p>in the .h file:</p>
  
  <pre><code>#import "BViewController"
  #import "CViewController"
  #import "DViewController"
  
  @interface AViewController:UIViewController {
  
  BViewController *bViewCon;
  CViewController *cViewCon;
  DViewController *dViewCon;
  
  
  }
  
  @property (nonatomic, retain) BViewController *bViewCon;
  @property (nonatomic, retain) CViewController *cViewCon;
  @property (nonatomic, retain) DViewController *dViewCon;
  
  @end
  </code></pre>
  
  <p>In my .m file I have the following:</p>
  
  <pre><code>#import "BViewController"
  #import "CViewController"
  #import "DViewController"
  
  @implementation AviewController
  
  @synthesize bViewCon, cViewCon, dViewCon;
  
  - (void) viewDidLoad {
  
  [super viewDidLoad];
  
  bViewCon = [[BViewController alloc] init];
  [bViewCon bMethod];
  
  ...
  
  }
  </code></pre>
  
  <p>However, I am getting the error message, "No visible @interface for 'BViewController' declares the selector 'bMethod'".  I need to call the other methods from the other viewControllers the same way from this class (i.e. AViewController).</p>
  
  <p>Thanks in advance to all who reply.</p>