title: Need help Making the UIAlert View have a action
body: <p>This is the part of the .m I am trying to configure: 
  This is my UIAlertView:</p>
  
  <pre><code>NSString *message = [NSString stringWithFormat:@"Score %d", _score];
  UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"Game Over"
                                                       message:message
                                                      delegate:nil
                                             cancelButtonTitle:@"Play Again"
                                             otherButtonTitles:nil];
  [av show];
  </code></pre>
  
  <p>I am trying to make the above  UIAlertView so when I click on Play Again, it does this:</p>
  
  <pre><code>[self runAction:[SKAction sequence:@[[SKAction repeatAction:[SKAction sequence:@[[SKAction runBlock:^{
  
          }], [SKAction waitForDuration:0.05],  [SKAction waitForDuration:0.05]]] count:4], [SKAction runBlock:^{
              _canRestart = YES;
          }]]]];
  </code></pre>
  
  <p>this is my .h:</p>
  
  <pre><code>#import &lt;SpriteKit/SpriteKit.h&gt;
  
  @interface MyScene : SKScene
  
  @end
  </code></pre>
  
  <hr>
  
  <p>I have added what vborra has said, and i am still getting the  Use of undeclared Identifier 'alertView' message.  is declared in the .h, and this is the code i have in the .m that i am trying to configure</p>
  
  <ul>
  <li><p>(void)alertView:UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
          [self runAction:[SKAction sequence:@[[SKAction repeatAction:[SKAction sequence:@[[SKAction runBlock:^{</p>
  
  <pre><code>    }], [SKAction waitForDuration:0.05],  [SKAction waitForDuration:0.05]]] count:4], [SKAction runBlock:^{
          _canRestart = YES;
      }]]]];
  </code></pre></li>
  </ul>