Wednesday, September 25, 2013

IOS coredata

posts by sijiazhentan on 2013-03-19 09:46:32 Edit
I have a table, there are two elements, one is the total revenue, a total amount of expenditures, They just want to change the value of each want to add a new data without the ~ how to do that? Achieved using core data.
Reply:
Write their own definition of a dataCenter used to manage CoreData conditions under NSManagedObjectID remove records or something and then modify the final re-write NSManagedContext
Reply:
Why create a table with the core data, you need to delete app and re-run it is not being given it ~ ~
Reply:
You may be in the middle of the media Coordinator did not manage the underlying database may also be updated CoreData your table structure is not in the build before the project to delete the original database
Reply:
New Table, the data needs to be migrated it (like the word), and then generates a new table - the original table has a green check mark, the newly generated no checkmark.
Why the new entity resulting table is not the original table entity much? ?
Reply:
landlord sijiazhentan reply quote:
posts by sijiazhentan edit
on 2013-03-19 09:46:32I have a table, there are two elements, one is the total revenue, a total amount of expenditures, They just want to change the value of each want to add a new data without the ~ how to do that? Achieved using core data.



You first read that you want to modify the value NSManagedObject object A, for example, you want to modify the value of Money, you can do
[A setMoney: newValue];
[Context save: nil]; / / context for the NSManagedObjectContext object


Reply:
There is a check mark database is currently being used version of it, as the number of entities inconsistency is not very understanding.

No comments:

Post a Comment