안녕 얘들 아 내가 버튼에 연결 IBAction를 : SecondViewControllerclickedButtonAtIndex :이이 작동하지
- (IBAction)showCurl:(id)sender {
alert1 = [[UIAlertView alloc]initWithTitle:@"Loading" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
[alert1 show];
}
및 자동 실행에 clickedButtonIndex하지만 어떻게 든로드되지 않습니다
#pragma mark UIAlertView
- (void)alertView:(UIAlertView *)alert1 clickedButtonAtIndex:(NSInteger)buttonIndex {
if(buttonIndex == 0){
SecondViewController *sampleView = [[SecondController alloc] init];
[sampleView setModalTransitionStyle:UIModalTransitionStylePartialCurl];
[self presentModalViewController:sampleView animated:YES];
}
else{
// Cancel prompt
}
}
여기에 뭔가가 있습니까?
무엇이 문제입니까? 경고가 표시 되었습니까? 그렇다면 위임 메서드가 호출 되었습니까? –
경고가 표시되지만'- (void) alertView : (UIAlertView *) alert1 clickedButtonAtIndex : (NSInteger) buttonIndex {' –