Сделать кнопку это UIAlertView выполнить Segue

Я создалUIAlertView за действие, которое дает мне 2 варианта. Я хочу, чтобы пользователь мог нажать на кнопку и заставить ее выполнить переход.

Вот код, который у меня есть:

- (IBAction)switchView:(id)sender
{
    UIAlertView *myAlert = [[UIAlertView alloc]
                            initWithTitle:@"Please Note"
                            message:@"Hello this is my message"
                            delegate:self
                            cancelButtonTitle:@"OK"
                            otherButtonTitles:@"Option 1", @"Option 2", nil];
    [myAlert show];
}

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    NSString *buttonTitle = [alertView buttonTitleAtIndex:buttonIndex];

    if ([buttonTitle isEqualToString:@"Option 1"]) {



    }
}

Ответы на вопрос(3)

Ваш ответ на вопрос