【问题标题】:restoring a modal view controller恢复模态视图控制器
【发布时间】:2016-04-01 00:12:30
【问题描述】:
<p>Modal view controller's delegate is (null) with attempting to restore it </p>     

方法没有被调用... + (UIViewController *)viewControllerWithRestorationIdentifierPath:(NSArray *)identifierComponents 在定义了一个 restoreClass 之后

AppDelegate.m 没有使用

 -(UIViewController *)application:(UIApplication *)application viewControllerWithRestorationIdentifierPath:(NSArray *)identifierComponents coder:(NSCoder *)coder

【问题讨论】:

    标签: state-restoration


    【解决方案1】:

    如果我的问题是正确的,请尝试对您的委托进行编码并在恢复视图控制器时对其进行解码。仅恢复您的视图控制器将无济于事。您必须恢复所有数据和委托才能使应用正常运行。

    【讨论】:

      猜你喜欢
      • 2020-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多