Stop UIPopover from dismissing automatically

后端 未结 3 1048
孤独总比滥情好
孤独总比滥情好 2020-12-31 09:04

I was wondering if there was a way to stop an iPad popover from dismissing automatically whenever you touch the screen outside the popover? If not, is there some kind of met

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 09:51

    - (BOOL) popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController
    {
        return NO;
    }
    

    That does it for you and you may assign a specific bar button item or something else in your popover to dismiss the popover.

提交回复
热议问题