objective-c app update and core data

PatrikD

One thing bothers me, I am developing iOS app. Firstly when hasPerformedFirstLaunch I load core data, it works good. But later, when I'll update my app. I would like to change core data. How can I do this or How you do this? It is an app where a lot of data that will accrue updates.

My first launch

    if (![[NSUserDefaults standardUserDefaults] boolForKey:@"hasPerformedFirstLaunch"]) {
    [self initialCoreData];
    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"hasPerformedFirstLaunch"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
Stephen Darlington

Core Data has the ability to migrate models from old versions to newer ones automatically, albeit with a few limitations. There's lots of documentation and there are some decent tutorials around if you search for "lightweight migration."

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

ios - making app delete and update core data in the background (objective c)

IOS/Objective C: App crashes with core data - pressing the save button

Objective C, Core Data, NSManagedObject

What is __NSFrozenArrayM in Core Data Objective - C

objective c - set relationship (core data)

Tableview, core data and JSON in Objective C

How to filter data from Core Data in iOS Using Objective C

How to fetch specific data from Firestore and update it in Objective-C

IOS/Core-data/Objective-C: NSPredicate with Boolean values

IOS/Objective-C/Core Data: NSPredicates with Complicated Conditional logic

How to add Array as string in Core Data in Objective c

Fetch Result Crashes (using persistentContainer) - Core Data Objective C

Physical location (directory) in persistent store for Core data(Objective C)

Update Core Data store location to support App Groups

Quiz App in objective C

Objective c converter app

Objective c — Update parameter in block

Update String in objective C alert

Update not working sqlite in objective c

Core Data batch update

Core data search and update

Objective C - one-many relationships data retrival from core data

IOS/Objective-C: Detect if nsmanaged object linked to another nsmanagedobject in core data

How to iterate an NSSet (Objective-C) - To-Many relationship representation in Core Data - efficiently?

Xcode 8 How to use Core Data Code Gen Classes in Objective-C?

Core Data - The correct way to subclass NSManagedObject in objective-c project Xcode 8

ios/xcode/objective-c: Any way to link to other view controller in core-data driven page?

ios/objective-c/core-data: How to show relationship as property in NSManagedObjects

IOS/Objective-C: Load one record from Core Data without loading table first