title: how to call delegate method, iphone
body: <p>Given :</p>
  
  <blockquote>
    <ol>
    <li>classA with its delegate</li>
    <li>classB  has a button on it</li>
    </ol>
  </blockquote>
  
  <pre><code>classA.h
  
  @protocol classADelegate &lt;NSObject&gt;
  - (void)method:(NSString *) name;
  @end
  @interface StoreChooser : UIViewController
  @end
  ------------------------------------------------------
  classA.m
  -(IBAction)buttonCliked{
       // invoke delegate method from classA at here
  
  }
  
  classB.h
  @interface classB : UIViewController &lt;classADelegate&gt;
  @end
  
  ------------------------------------------------------
  // Conform delegate of classA
  classB.m
  - (void)method:(NSString *) name {
  </code></pre>
  
  <p>}
      @end
      ------------------------------------------------------</p>
  
  <p>My goal : I need classB to invoke a method delegate from classA in <strong>buttonClicked</strong> action</p>
  
  <p><strong>Question</strong> : what should I do to achieve my goal.</p>