我正在加载 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
并加载/关闭它。