2013-04-26 2 views
1

UITableViewCell 클릭시 ABPeoplePickerNavigationController을로드 중입니다. 피커가 UIModalPresentationFormSheet으로 표시되는 경우 배경 UIViewController를 클릭하지 않음

self.peoplePicker = [[ABPeoplePickerNavigationController alloc] init]; 
self.peoplePicker.peoplePickerDelegate = self; 
[self.peoplePicker setDelegate:self]; 
self.peoplePicker.modalPresentationStyle = UIModalPresentationFormSheet; 
[self presentViewController:self.peoplePicker animated:YES completion:nil]; 

, 나는 그 뒤에 UIViewController을 해제 할 수 있습니다. 이를 위해 피커를 제시 할 때 투명 뷰를로드하고 피커가 해제 될 때이를 닫을 수 있습니다. 그래서 viewcontroller에 수도꼭지가 작동하지 않습니다. 다른 방법이 있다면 알고 싶습니다. 새로운 UIView을 만들고로드/제거하지 않아도됩니다.

+0

보기 컨트롤러를 양식 시트로 제시하면 기본적으로보기 뒤의보기를 비활성화합니다. 즉,보기 뒤에서 회색보기를 표시합니다. –

답변

1

피커 뷰를 표시하거나 해제하기 전에 ViewController보기에서 setUserInteractionEnabled 속성을 사용할 수 있습니다.

관련 문제