我刚刚发现popoverPresentationControllerDidDismissPopover
方法已被弃用。
什么是替代方法?
最佳答案
看来 UIPopoverPresentationControllerDelegate
协议(protocol)包括 UIAdaptivePresentationControllerDelegate
协议(protocol),它有
// Called on the delegate when the user has taken action to dismiss the presentation successfully, after all animations are finished.
// This is not called if the presentation is dismissed programatically.
@available(iOS 13.0, *)
optional func presentationControllerDidDismiss(_ presentationController: UIPresentationController)
和
presentationControllerDidDismiss()
弹出窗口被解除时似乎被调用。
关于ios - popoverPresentationControllerDidDismissPopover 的替代方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59045058/