jjzjj

popoverControllerRestorationDicti

全部标签

ios - 如何使用 iOS 状态恢复来恢复 UIPopoverController?

在我的一个应用程序中,我实现了staterestoration目前正在开发iPad版本。在iPad版本中,我使用UIPopoverController来显示ViewController,但我无法找到应该如何保存和恢复这些弹出窗口Controller。UIPopoverController不继承自UIViewController因此没有restorationIdentifier和restorationClass属性我可以利用。我是否负责保存弹出Controller的targetRect并在我的主视图Controller中手动编码它的contentViewController以便我可以在它