1

我正在加载 aABPeoplePickerNavigationController点击 a UITableViewCell

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];

当挑选器呈现为时UIModalPresentationFormSheet,我想禁用其UIViewController背后。为此,我可以在呈现选择器时加载一个透明视图,并在选择器被关闭时将其关闭。所以在视图控制器上的水龙头不起作用。我想知道是否有另一种方法可以做到这一点,我不需要创建一个新的UIView并加载/关闭它。

4

1 回答 1

1

您可以setUserInteractionEnabled在呈现和关闭 Picker 视图之前和之后对 ViewController 的视图进行属性。

于 2013-04-26T07:00:28.613 回答