7 Delegation and Text Input

In this chapter, we will introduce delegation, a recurring design pattern of Cocoa Touch development. In addition, you will see how to use the debugger that Xcode provides to find and fix problems in your code.

By the end of the chapter, the HypnoNerd user will be able to display hypnotic messages on the screen using a text field (Figure 7.1).

Figure 7.1  Finished HypnoNerd

Finished HypnoNerd

Text Fields

Open the HypnoNerd application that you started in the previous chapter.

You have already seen one way to display text on your user interfaces using a UILabel. Now let’s take a look at another way to ...

Get iOS Programming: The Big Nerd Ranch Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.