Changes

Jump to: navigation, search

An iPhone OS Core Data Tutorial

2 bytes added, 18:39, 24 June 2010
Saving Data to the Persistent Store using Core Data
</pre>
The above code identifies the application delegate instance, and uses that object to identify the managed object context. This context is then used to create a new managed object using the Contacts entity description. The setValue method of the managed object is then called to set the name, address and phone attribute values of the managed object (which in turn are read from the text field user interface compoments). Finally the context is instructed to save the changes to the persistent store with a call to the context’s save method.
== Retrieving Data from the Persistent Store using Core Data ==

Navigation menu