title: Dismissing a Modal View Controller using the UI Alert View Button
body: <p>I am new to <strong>Xcode</strong> somewhat. Right now I am creating a <code>view controller</code> (displaying modally) which displays a form for users to input information, and click "submit" to submit the information. </p>
  
  <p>I created my <code>IBAction</code>, and implemented a <code>UIAlerView</code> that informs the user the information has been sent. I would like the "Ok" button within my alert view to take them back to the original view controller. I set my <code>Alert View delegate</code> and implemented the following method in my .m file:</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
  </code></pre>
  
  <p>When I test it, nothing happens. Can anyone tell me what I am doing wrong. </p>