Graphics Programs Reference
In-Depth Information
After making the five connections, select the File's Owner and check the connections in-
spector. (Click the icon in the inspector selector.) Your connections should look like
Figure 5.5 . (The view connection was established by the template.)
Figure 5.5 Finished connections
Now let's adjust the properties of the UITextField . First, we want the UITextField
to have helpful placeholder text, like Enter Location Name . Next, consider the keyboard.
When a UITextField is activated, a keyboard appears on the screen. (We'll see why
this happens later in this chapter.) The keyboard's appearance is determined by a set of the
UITextField 's properties called UITextInputTraits . One of these properties is
the type of the keyboard's return key. For this application, we want the return key to read
Done .
Make these changes in the attributes inspector of the utilities area. Select the UITex-
tField and then, from the inspector selector, select the icon to reveal the attributes
inspector. Change the values for Placeholder and Return Key to match what is shown in
Figure 5.6 .
Figure 5.6 UITextField attributes
 
 
Search WWH ::




Custom Search