iPhone - calling a method from the top view controller
<p>I have 3 viewController classes, A, B and C. </p>

<p>From class A, I push and present class B and then from class B I push and present class C. All classes have delegate protocols defined, so </p>

<ul>
<li>b.delegate = a</li>
<li>c.delegate = b</li>
</ul>

<p>Now I am inside class C, but I need to run a method from class A. </p>

<p>What is the best way to call that method? I mean the best practice.</p>

<p>I can imagine declaring this on B</p>

<pre><code>- (BOOL) myMethodOnA {
// this method on B will run the method on A and return it to C
   return [delegate myMethodOnA];
}
</code></pre>

<p>but this sounds to me like a bad solution.</p>

<p>Any suggestions?</p>

<p>thanks.</p>
