나는 2 개의 UIAlertview를 가지고 있는데, 나는 다른 페이지로 가야한다. 두 개의 xib 파일을 만들고 주된 ViewController에서 가져 오지만, 왜 보이지 않는지는 모른다. 잘못된 플래그 내가 확인할 때 ~ 여기 내 코드입니다 :두 UIAlertView
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"LP01;" message:@"No Connection" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Help", nil];
UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@"LP01;" message:@"No Connection" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Help", nil];
- (void)alert:(UIAlertView *)alertview clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 1) {
AViewController *switch1 = [[AViewController alloc]
initWithNibName:nil bundle:nil];
[self presentViewController:switch1 animated:YES completion:NULL];
}
}
- (void)alert1:(UIAlertView *)alertview clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 1) {
BViewController *switch2 = [[BViewController alloc]
initWithNibName:nil bundle:nil];
[self presentViewController:switch2 animated:YES completion:NULL];
}
}
이 제발 도와주세요 감사 ~
이 질문이 지금 해결 되었습니까 ?? –
아직 해결되지 않았습니다 ~ –