O'Reilly logo

Beginning iOS 5 Application Development by Wei-Meng Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CUSTOMIZING THE TYPE OF INPUTS

To learn more about the input behaviors, go to Interface Builder, select the Text Field, and view its Attributes Inspector window (choose View image Utilities image Show Attributes Inspector). Figure 6-3 shows that window. In particular, pay attention to the section at the bottom that contains items named Capitalization, Correction, Keyboard, and so on.

image

FIGURE 6-3

This section contains several items you can configure to determine how the keyboard handles the text entered:

  • Capitalization — Enables you to capitalize the words, the sentences, or all the characters of the data entered via the keyboard.
  • Correction — Enables you to indicate whether you want the keyboard to provide suggestions for words that are not spelled correctly. You can also choose the Default option, which defaults to the user's global text correction settings.
  • Keyboard — Enables you to choose the different types of keyboard for entering different types of data. Figure 6-4 shows (from left to right) the keyboard configured with the following Keyboard types: Email Address, Phone Pad, and Number Pad.

    FIGURE 6-4

    NOTE If the keyboard is configured using the Number Pad type, then no period (“.”) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required