title: alert view buttons
body: <p>I'm creating an iOS application and when the score reaches 100 this alert will show and it all work fine but the buttons (share,apple,rate this app).</p>
  
  <pre><code>     - (void) buttonAction {
                  counter++;
                  if(counter == 100)
                      [self showAlert];
              }
  
              - (void) showAlert {
  
                  UIAlertView *alert = [[UIAlertView alloc]
  
                                        initWithTitle:@"hello"
                                        message:@"whats you name" 
                                        delegate:nil 
                                        cancelButtonTitle:@"Dismiss" 
                                        otherButtonTitles:@"share", @"apple" , @"rate this app", nil]; 
  
  
   -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
          if (buttonIndex == 0) { // means share button pressed
              // write your code here to do whatever you want to do once the share button is pressed
          }
          if(buttonIndex == 1) { // means apple button pressed
              // write your code here to do whatever you want to do once the apple button is pressed
          }
          // and so on for the last button
      }
  
                  [alert show];
  
  
  
              }
  
              -(IBAction)plus {
                  counter=counter + 1;
                  count.text = [NSString stringWithFormat:@"%i",counter];
                  if(counter == 100)
                      [self showAlert];
  
              }
  
              -(IBAction)zero {
                  counter=0;
                  count.text = [NSString stringWithFormat:@"%i",counter];
              }
  
  
  
          - (void)viewDidLoad {
              counter=0;
              count.text = @"0";
                  [super viewDidLoad];
  
          }
  </code></pre>
  
  <p>what i would like to no where do i add the link etc. thank you </p>