代码之家  ›  专栏  ›  技术社区  ›  Tiago Mendes chengsam

没有名为“uiuseractivityrestoring”的类型或协议

  •  1
  • Tiago Mendes chengsam  · 技术社区  · 6 年前

    我有以下错误:

    No type or protocol named 'UIUserActivityRestoring'
    

    发生错误的代码

       [self application:application continueUserActivity:activity restorationHandler:^(NSArray<id<UIUserActivityRestoring>> * _Nullable restorableObjects) {
    
    1 回复  |  直到 6 年前
        1
  •  3
  •   Tiago Mendes chengsam    6 年前

    在网上搜索后,一直没有找到。 我决定将我的xcode 9.4更新为xcode 10,版本与我的同事相同 这解决了我的问题。