Ios UIAlertView调用电话

Ios UIAlertView调用电话,ios,Ios,看到这个GIF了吗 这就是代码 -(void)goGuestInfo { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[@"label.change" localize] message:@"d"

看到这个GIF了吗

这就是代码

-(void)goGuestInfo
{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[@"label.change" localize]
                                                        message:@"d"
                                                       delegate:self
                                              cancelButtonTitle:[@"label.cancel" localize]
                                              otherButtonTitles:[@"label.name" localize],
                                                                [@"label.email" localize],
                                                                [@"label.phone" localize], nil];
    [alertView show];
}

#pragma mark - Alertview delegate

-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
    switch (buttonIndex) {
        case 0: break;
        case 1: [self performSegueWithIdentifier:HotelBookingGuestEditNameSegue sender:nil]; break;
        case 2: [self performSegueWithIdentifier:HotelBookingGuestEditEmailSegue sender:nil]; break;
        case 3: [self performSegueWithIdentifier:HotelBookingGuestEditPhoneSegue sender:nil]; break;
        default: break;
    }
}
它只在我按“name”(即案例1:)时才会执行


我以前从未体验过这一点,而且我使用过很多次AlertView。我错过了什么明显的东西吗?在我返回应用程序后,它将按其应做的顺序进行分段

#imports
的深处,有一个
didclickbuttonnatindex
打了一个电话

你说的对吗?很难调试,因为问题可能不在didDismissWithButtonIndex代码中。@Jeff我已经添加了一个答案。它只是一个类别,包含在代码库中的某个地方(仍然没有找到),有一个方法可以调用。。