이상한 문제가 있습니다. 내가 시뮬레이터에 내 애플 리케이션을 실행할 때 모든게 잘 작동하지만 일부 코드는 어쨌든 응답하지 않습니다 .. !! 나는 UIActionSheet를 시뮬레이터에서 잘하는 것 같지만, On 장치는 전혀 작동하지 않는다. 심지어 UIAction 시트가 iPad에서는 작동하지 않지만 시뮬레이터에서 작동
가 여기에 액션 시트 보여 내 코드입니다 .. 아이팟 작업 :-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
if ([actionSheet buttonTitleAtIndex:buttonIndex] == @"A") {....}
if ([actionSheet buttonTitleAtIndex:buttonIndex] == @"B") {....}
}
친구가 당신의 도움을 찾고 메신저 액션 시트이 대리자를 사용하여
UIActionSheet *DeleteAction = [[UIActionSheet alloc] initWithTitle:@"Select Delete Option" delegate:self cancelButtonTitle:Nil destructiveButtonTitle:nil otherButtonTitles:nil, nil];
[DeleteAction addButtonWithTitle:@"A"];
[DeleteAction addButtonWithTitle:@"B"];
[DeleteAction showInView:self.view];
및 메신저를 .. . 미리 감사드립니다. 아미타이
먼저 iPad에서 응용 프로그램을 삭제하고 Xcode를 사용하여 다시 설치해보십시오. –
행운을 빌어 요 .... – Amitabha