Database Reference
In-Depth Information
4.
With the view selected, change the background color to white from the
Attributes Inspector on the right side of the screen.
Drag a label from the Object Library onto the
MainViewController
.
5.
6.
In the Attribute Inspector, change the alignment to centered.
7.
Change Lines to
0
. Setting lines to 0 tells the label that it will have unlimited
lines.
8.
Change the dimensions of the label to
x:20 y:114 width:280 height:105
. You
can set these by selecting the Size Inspector tab in the Utilities Pane.
Now it's time to set up the Segue:
Select the segue that is between the
MainViewController
and the
FlipSideViewController.
1.
2. In the Attributes Inspector, change the Identifier to ToSettings.
Next we set up the
FlipSideViewController:
Select the
FlipSideViewController
.
1.
2.
From the menu, select Editor ➤ Embed In ➤ Navigation Controller.
3. Delete the
FlipSideViewController
because we really want a Table View
Controller.
Finally, we set up the
SettingsViewController
:
1.
Drag a Table View Controller from the Object Library on to the storyboard.
2.
Ctrl-drag from the Navigation Control to the new Table View Controller you
just added. When you release, you will be shown a menu. Left-click root view
controller under Relationship Segue.
3.
Select the Navigation Item inside the Table View Controller Scene in the
Document Outline.
4.
In the Attributes Inspector type
Settings
for title.
5.
Drag a Bar Button Item to the left side of the Navigation Bar.
6.
In the Attributes Inspector change the title to
Close
.
7.
Select the Table View from the Document Outline.
8.
Change the content in the Attributes Inspector to Static Cells.
9.
Select the Table View Section inside the Table View in the Document Outline.
You may need to expand the Table View contents by clicking the caret that is
just to the left of it.
10.
Change Rows to 1 in the Attribute Inspector.
11.
Drag a Label into the Table View Cell.
Search WWH ::
Custom Search