アラートビューのボタンをクリックすると、新しいページに移動できる方法を探しました。prepareForSegueメソッドを使用する必要がありますか?または、もっと簡単な方法はありますか?
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
    if(buttonIndex ==0){
        //code goes here
    }
    if(buttonIndex ==1){
        NSString *username = [[alertView textFieldAtIndex:0] text];
        NSString *password = [[alertView textFieldAtIndex:1] text];
        NSLog(@"Username:%@",username);
        NSLog(@"Password:%@",password);
        //Check if username and password tally if tally move on to Menu page
        MainPageViewController *anotherController = [[MainPageViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
        [self.navigationController pushViewController:anotherController animated:YES];
    }
}