title: Make Actionsheet button open another ViewController?
body: <p>Someone gave me this code, is it correct? if so how do i use it? I am a noob so can you explain in simpler terms for me? Thanks guys :) </p>
  
  <pre><code>- (IBAction)OpenActionSheetButton:(id)sender {
  
  
  UIActionSheet *actionsheet = [[UIActionSheet alloc]initWithTitle:@"There is no going back,
   are you sure???" delegate:self cancelButtonTitle:@"Cancel"
   destructiveButtonTitle:@"Continue" otherButtonTitles:nil, nil];
  [actionsheet showInView:self.view];}
  
  -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:
  (NSInteger)buttonIndex
  {
  if(buttonIndex == 0)
  {
  UIViewController *controller =  [self.storyboard 
  instantiateViewControllerWithIdentifier:@"storyboardViewIdentifier"];
      //storyboardViewIdentifier is the ViewController identifier you specify in the
  storyboard
  
      //PUSH
      [self.navigationController pushViewController:controller animated:YES];
      //Modal
      [self presentViewController:controller animated:YES completion:Nil];
  }
  </code></pre>
  
  <p>}</p>