Swift: Popover dismiss callback

后端 未结 4 1628
太阳男子
太阳男子 2020-12-30 10:56

There are two UIViewConrollers in my Storyboard: MainViewController and SecondViewController. I\'m going to show S

4条回答
  •  太阳男子
    2020-12-30 11:15

    Or, more simply, just call iOS's delegate method manually when you dismiss the popover manually.

        dismissViewControllerAnimated(true, completion: nil)
        popoverPresentationController?.delegate?.popoverPresentationControllerDidDismissPopover?(popoverPresentationController!)
    

提交回复
热议问题