Use AppDelegate in today extension

后端 未结 1 516
小蘑菇
小蘑菇 2021-01-18 22:48

I\'m trying to build an today extension for my app.

I\'m using CoreData and NSFetchedResultsController and get the following error:

相关标签:
1条回答
  • 2021-01-18 23:36

    A Today Extension isn't an application, so UIApplication and AppDelegate aren't available. I'm not for sure what you are trying to do with the AppDelegate, but extensions do have a NSExtensionContext available by calling:

     self.extensionContext
    
    0 讨论(0)
提交回复
热议问题