UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"お知らせ" message:@"登録解除しますか" delegate:self cancelButtonTitle:@"いいえ" otherButtonTitles:@"はい", nil] autorelease] ; [alert show];
- (void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex != alertView.cancelButtonIndex ) { // }