title: How to add custom UIbutton into UIAlertView?
body: <p>I have a question about customize <code>UIAlertView</code></p>
  
  <p>I am customize a <code>UIAlertView</code> from even the background and button. I add the custom button into it, however I can't trigger the action of the button. The custom buttons are added into <code>UIAlertView</code> , but how can't I do add action to them? Please help me out. Is it because <code>UIAlertView</code> can't let us have custom buttons?</p>
  
  <pre><code>UIButton *firstButton = [[UIButton alloc] initWithFrame:CGRectMake(10, 120, 90, 30)];
  UIButton *secondButton = [[UIButton alloc] initWithFrame:CGRectMake(180, 120, 90, 30)];
  
  UIImage *btnImage = [UIImage imageNamed:kButtonBlackImage];
  
  [firstButton setBackgroundImage:btnImage forState:UIControlStateNormal];
  [firstButton setTitle:@"Don't Favorite" forState:UIControlStateNormal];
  firstButton.titleLabel.font = BOLDFONTSMALL;
  [firstButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  [firstButton addTarget:self action:@selector(cancelFavorite:) forControlEvents:UIControlEventTouchUpInside];
  
  [secondButton setBackgroundImage:btnImage forState:UIControlStateNormal];
  [secondButton setTitle:@"Save Favorite" forState:UIControlStateNormal];
  [secondButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  secondButton.titleLabel.font = BOLDFONTSMALL;
  [secondButton addTarget:nil action:@selector(addFavorite:) forControlEvents:UIControlEventTouchUpInside];  
  
  [alert addSubview:firstButton];
  [alert addSubview:secondButton];
  </code></pre>