title: Navigating between ViewControllers with UIAlertView
body: <p>I'm trying to change view controllers based on a user's selection in a <code>UIAlertView</code>. I'm new to objective c and am having some trouble.</p>
  
  <p>When the user presses "I'm done", i want the app to navigate back to the previous view controller. When the user presses "Scoreboard", i want the app to navigate to the next view controller.</p>
  
  <pre><code>UIAlertView *jigsawCompleteAlert = [[UIAlertView alloc]   //show alert box with option to play or exit
                                    initWithTitle: @"Congratulations!" 
                                    message:completedMessage 
                                    delegate:self 
                                    cancelButtonTitle:@"I'm done" 
                                    otherButtonTitles:@"Play again", @"Scoreboard",nil];
              [jigsawCompleteAlert show];
  
  - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
      if (buttonIndex == 0) {
          NSLog(@"Cancel Tapped.");
          [self.navigationController popViewControllerAnimated:YES];
  
      }
      else if (buttonIndex == 1) {
          NSLog(@"GO tapped.");
          startDate = [NSDate date];
          // Create the stop watch timer that fires every 10 ms
          stopWatchTimer = [NSTimer 
                            scheduledTimerWithTimeInterval:1.0/10.0
                            target:self
                            selector:@selector(updateTimer)
                            userInfo:nil
                            repeats:YES];
      } else if (buttonIndex == 2) {
          NSLog(@"Scoreboard tapped.");
      }
  
  }
  </code></pre>
  
  <p>The popView part is working, and the app navigates back one view controller. I don't know how to get the app to move forward one view controller. I know it's something to do with <code>pushViewController</code> but i've only seen quite old and contradictory articles detailing how to do this.</p>
  
  <p>I'd appreciate some help with this, thanks.</p>