Database Reference
In-Depth Information
4.
Add four attributes
birthday
Type:
Date
firstName
Type:
String
lastName
Type:
String
image
Type:
BinaryData
Create a new group under
iCloudTestApp
and name it
ManagedObjects
.
5.
With the
ManagedObjects
group selected, create a new
NSManagedObject
subclass. This template is found under Core Data in the iOS section.
6.
Make sure
iCloudTestApp
is selected for the data model and click Next.
7.
Select
CloseFriend
and click Next.
8.
Create a new folder for this file and call is
ManagedObjects
.
9.
Make sure the
iCloudTestApp
target is checked and click Create.
10.
Modifying the Storyboard
Now we need to modify the Storyboard (see Figure
6-2
):
Select the
Main.storyboard
to open the Storyboard editor.
1.
2.
Drag in a Table View Controller.
3.
With the new Table View Controller selected, embed a navigation controller.
4.
Select the Tab Bar Controller.
5.
Ctrl-drag from the Tab Bar Controller to the new navigation controller you
just created and select View Controllers under Relationship Segue from the
pop-up menu.
6.
Select the Tab Bar Item from the Navigation Controller and change the title to
Close Friends
.
7.
Drag in a View Controller to the right of the new Table View Controller.
8.
Select the Table View Controller.
9.
Ctrl-drag from the Table View Controller to the View Controller and select
Push from the pop-up menu.
Search WWH ::
Custom Search