how dismissModalViewcontroller works,iphone
<p>Supposed I have ViewA and ViewB and I am using modal view controller such as</p>

<pre><code>[ViewA presentModalViewController:ViewB animated:YES]
</code></pre>

<p>Then in order to dismiss the ViewB,  </p>

<pre><code>[self dismissModalViewControllerAnimated:YES] 
</code></pre>

<p>is invoked</p>

<p><strong>Question</strong> :</p>

<p>what does <strong>self</strong> mean here.Is it ViewB or ViewA.</p>

<p>where should we put that code in? Should it be in ViewA or ViewB.</p>
