You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25
-
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30
-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43
-
// Saves changes in the application's managed object context before the application terminates.
44
-
self.saveContext()
45
-
}
46
-
47
-
// MARK: - Core Data stack
48
-
49
-
lazy varapplicationDocumentsDirectory:NSURL={
50
-
// The directory the application uses to store the Core Data store file. This code uses a directory named "com.diegorv.iOS8_Swift_TableView_CoreData_Example" in the application's documents Application Support directory.
// The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model.
// The persistent store coordinator for the application. This implementation creates and return a coordinator, having added 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.
// Replace this with code to handle the error appropriately.
77
-
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
// Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail.
// Replace this implementation with code to handle the error appropriately.
103
-
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25
+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43
+
// Saves changes in the application's managed object context before the application terminates.
44
+
self.saveContext()
45
+
}
46
+
47
+
// MARK: - Core Data stack
48
+
49
+
lazy varapplicationDocumentsDirectory:NSURL={
50
+
// The directory the application uses to store the Core Data store file. This code uses a directory named "com.diegorv.iOS8_Swift_TableView_CoreData_Example" in the application's documents Application Support directory.
// The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model.
// The persistent store coordinator for the application. This implementation creates and return a coordinator, having added 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.
// Replace this with code to handle the error appropriately.
77
+
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
// Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail.
// Replace this implementation with code to handle the error appropriately.
103
+
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
0 commit comments