DB updation when app new version comes ?
Answer / Hansraj Meena
In iOS, when a new version of an application is released, the existing database is not updated automatically. To update the database, you need to migrate the data from the old schema to the new one. This can be done using Core Data's NSMigratePersistentStoresToNewVersion method or by manually managing the SQLite databases if you are using SQLite as your database.nnHere is a simple example of how you might use NSMigratePersistentStoresToNewVersion:n```swiftnlet migrate = NSMigratePersistentStoresToURL(store: persistentStoreCoordinator.persistentStoreUrls.first!, toDestinationURL: destinationURL, options: migrationOptions, withCompletionHandler: { success, error inn if let error = error {n print("Migration Failed: (error)")n } else if success == true {n print("Migration Successful.")n }n })```
| Is This Answer Correct ? | 0 Yes | 0 No |
Which api would you use to write test scripts to exercise the application’s ui elements?
Enlist the latest ios development patform?
What is nspersistentstore?
Explain Apple push notification
Are the nsmanagedobjectcontext queues serial or concurrent?
What are the important delegate methods of nsxml parser?
What is a delegate xcode?
In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?
How do I open a csv file on my phone?
Flow of push notification?
. Name the framework that is used to construct application’s user interface for iOS.
Which json framework is supported by ios? : IOS Architect