O'Reilly logo

iOS Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

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 Connections

A connection lets one object know where another object is in memory so that the two objects can work together. When the Quiz application loads QuizViewController.xib, the view objects that make up the interface and the QuizViewController have no idea how to reach each other. The QuizViewController needs to know where the labels are in memory so that it can tell them what to display. The buttons need to know where the QuizViewController is so that they can report when they are tapped. Your objects need connections.

Figure 1.13 shows the connections for Quiz. Some have already been made by the template (between the view outlet of QuizViewController and the UIView instance, for example), and some were made implicitly (dragging ...

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