Database Reference
In-Depth Information
Configuring the Detail View Controller
Next configure the detail view controller:
Select the new UIViewController .
1.
2.
Drag a Bar Button Item from the object library to the right side of the
UINavigationBar and set its title to Edit .
3.
Now drag four text fields into the view.
4.
Set them up as follows:
a.
First text field
i. Position & Size : x:20 y:84 width:136 height:30
ii. Placeholder Text : First Name
iii. Text Alignment : Left
b. Second text field
i. Position & Size : x:164 y:84 width:136 height:30
ii. Placeholder Text : Last Name
iii. Text Alignment : Left
c.
Third text field
i. Position & Size : x:20 y:122 width:181 height:30
ii. Placeholder Text : Display Name
iii. Text Alignment : Left
d. Fourth text field
i. Position & Size : x:209 y:122 width:91 height:30
ii. Placeholder Text : Fav. Num.
iii. Text Alignment : Right
5.
Now drag a UIImageView from the object library and place it at x:20 y:160
width:280 height:280.
6.
Under the Attribute Inspector check the User Interaction Enabled box.
7.
Lastly, select the segue coming into the view and set its identifier to
ToFriendDetails .
 
Search WWH ::




Custom Search