Changes

Jump to: navigation, search

An iOS 4 iPhone Core Data Tutorial (Xcode 4)

47 bytes added, 20:03, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IOS4XC4ios9_upgrade</googlehtmlet>
With the actions and outlets defined, now is a good time to design the user interface and establish the connections so select the ''coreDataViewController.xib'' file to begin the design work. The user interface and corresponding connections used in this tutorial are the same as those in previous data persistence chapters. The completed view should, once again, appear as follows:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
[[Image:xcode_4_coredata_ui.jpg|The Xcode 4 user interface design of the coreData example app]]
The final step is to build and run the application. Click on the ''Run'' button located in the toolbar of the main Xcode project window. If errors are reported check the syntax of the code you have written, using the error message provided by Xcode as guidance. Once the application compiles it will launch and load into the iOS Simulator. Enter some test contacts (some with the same name). Having entered some test data, enter the name of the contact for which you created duplicate records and click the Find button. The address and phone number of the first matching record should appear together with an indication in the status field of the total number of matching objects that were retrieved:
<google>IOSBOX</google>
[[Image:ios_4_iphone_core_data_app.jpg|An iOS 4 iPhone Core Data Example App running]]
<googlehtmlet>BUY_IOS4XC4_BOTTOMios9_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu