Changes

Jump to: navigation, search

An iOS 9 Core Data Tutorial

16 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
}
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Designing the User Interface ==
The above code uses the managed object context to obtain the Contacts entity description and then uses it to create a new instance of the Contacts managed object subclass. The name, address and phone attribute values of this managed object are then set to the current text field values. Finally, the context is instructed to save the changes to the persistent store with a call to the context’s save method. The success or otherwise of the operation is reported on the status label and, in the case of a successful outcome, the text fields are cleared ready for the next contact to be entered.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Retrieving Data from the Persistent Store using Core Data ==
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu