我在我的应用程序中使用核心数据.我希望该应用程序在iOS 9中打开,但事实并非如此.我该如何解决?
本节给出了警告.如何让它在iOS 9和iOS 10上运行?
lazy var persistentContainer: NSPersistentContainer = {
/*
The persistent container for the application. This implementation
creates and returns a container, having loaded the store for the
application to it. This property is optional since there are legitimate
error conditions that could cause the creation of the store to fail.
*/
let container = NSPersistentContainer(name: "IndirimiKovala")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
// Replace this implementation with code to …Run Code Online (Sandbox Code Playgroud)