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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.