У меня есть PopoverPresentationController, который отображается с кнопки, как показано ниже.
![enter image description here](https://i.stack.imgur.com/knlVX.png)
![enter image description here](https://i.stack.imgur.com/6OsTP.png)
Я хочу отклонить это всплывающее окно при нажатии вне всплывающего окна.Не следует сбрасывать со счетов при нажатии внутри всплывающего окна.Ниже мой код.
_popup = [self.storyboard instantiateViewControllerWithIdentifier:@"PopupViewController"];
_popup.modalPresentationStyle = UIModalPresentationPopover;
_popup.popoverPresentationController.sourceView = self.button;
_popup.modalInPopover = TRUE;
[self presentViewController:_popup animated:TRUE completion:nil];
Как мне это сделать?