today-extension

How to access CoreData model in today extension (iOS)

我的梦境 提交于 2019-11-26 09:20:46
问题 Is it possible to work with my CoreData model in the today extension in swift like in the original app? If yes, how can I create the NSManagedObjectContext? I really have no clue, beside the group-identifier, but unfortunatly I don\'t know how to get the context.. In the past I created apps with the check at the beginning that I want to use CoreData and then I got the managedObjectContext via my AppDelegate.. But how can I do somethink like that in an extension? Apple doesn\'t offer