Sams Teach Yourself Core Data for Mac® and iOS in 24 Hours (Gal Zentner's Library) by Jesse Feiler

Sams Teach Yourself Core Data for Mac® and iOS in 24 Hours (Gal Zentner's Library) by Jesse Feiler

Author:Jesse Feiler
Language: eng
Format: epub
Publisher: Sams
Published: 2012-06-16T16:00:00+00:00


* * *

Note

In versions of Xcode before 4.2, master view controllers were often called root view controllers.

* * *

Outlets in MasterViewController and DetailViewController

• MasterViewController_iPad.xib and MasterViewController_iPhone.xib—File’s owner is MasterViewController in identity inspector.

• Outlets in Connections inspector.

• detailViewController not connected.

• searchDisplayController not connected.

• view connected to Table View.

• Referencing outlets in Connections inspector.

• dataSource in Table View.

• delegate in Table View.

• DetailViewController_iPad.xib—File’s owner is DetailViewController in Identity inspector.

• Outlets in Connections inspector.

• detailDescriptionLabel connected to Label—Detail view content goes here.

• searchDisplayController not connected.

• view connected to View.

• No referencing outlets connect to DetailViewController.

• DetailViewController_iPhone.xib—File’s owner is DetailViewController.

• Outlets in Connections inspector.

• detailDescriptionLabel connected to Label—Detail view content goes here.

• searchDisplayController not connected.

• view connected to View.

• No referencing outlets connect to DetailViewController.

This is what you have in the template. If you want to repurpose it, you have two sets of changes to make:

• In the master view controller, change the table so that it picks up the new entity in your data model rather than the default Event entity. Then change it to pick up the appropriate attribute from your data model instead of timeStamp.

• In the detail view controller, pick up the appropriate entity and attribute for the label object. Alternatively, use a text field or other element. Furthermore, you can use other elements to display new attributes for your new data model.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.