0
iOS 5 스토리 보드 질문이 있습니다. 첫 번째 응용 프로그램 Storyboards를 사용하여 제작 중이며 사용하고 싶지만 UIActionSheet 버튼에서보기를로드하는 방법을 이해할 수 없습니다. UIActionSheet가 잘 실행되고 UIAddressBook 선택 도구가로드되지만 새로운 스토리 보드보기 컨트롤러로 전환해야합니다.iOS 5 UIActionSheet 버튼에서보기로드
아이디어가 있으십니까?
여기에 코드의 일부입니다 다음 [UIStoryboard instantiateViewControllerWithIdentifier:]
방법에
// Specify what to do when a user selects a button from the personSelectQuery
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0) {
[self showAddressPicker];//This works just fine to show the address book
} else if (buttonIndex == 1){
[self showAddPersonView];//This is the custom storyboard view i want to load
}
}
완벽하게 작동했습니다! 이 코드를 사용 :'AddPersonViewController * addPerson = [self.storyboard instantiateViewControllerWithIdentifier : @ "AddPerson"]; [self.navigationController pushViewController : addPerson animated : YES];' – Brian