Is rightnavbar button only for push n pop for iPhone?
<p>I am calling an alert view in <code>rightnavbarbutton</code>. Then, inside that, if <code>buttonindex==0</code>, I am doing this:</p>

<pre><code>[self.navigationController popToRootViewControllerAnimated:YES];
</code></pre>

<p>but my app just quits after that. When I pass directly without alertbutton, it's fine. So is it true that I can't write alertbutton code in <code>navrightbutton</code>?</p>
