O'Reilly logo

Xcode 4 iOS Development by Steven F. Daniel

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

Making our Components work together

In this section, we will be discussing how to go about making our HelloXcode4_GUI application and its components interact with each other. We want to ensure that when the user enters in their name, and clicks on the OK button, the Output will display Welcome to iOS Programming along with the user name.

We will take a look at how to go about connecting our controls via the use of Outlets and Actions. The controls that we will create are shown in the table below:

DATA TYPE

OBJECT NAME

(UILabel)

lblName

(UITextField)

txtUsername

(UILabel)

lblOutput

(UIButton)

btnOK

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