O'Reilly logo

iOS® 8 for Programmers: An App-Driven Approach with Swift™, Third Edition by Abbey Deitel, Harvey M. Deitel, Paul J. Deitel

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

5.4.6 QuizViewController Outlets and Actions

Open the Assistant Editor, then create the following outlets and actions:

• Use the techniques you learned in earlier chapters to create @IBOutlets in class QuizViewController for the flagImageView, questionNumberLabel and answerLabel in Fig. 5.10.

Control drag from the first Segmented Control to the QuizViewController as you normally do, but in the outlet popover that appears, for Connection select Outlet Collection and name the outlet collection segmentedControls. Also, since this action will be used only for Segmented Controls, choose UISegmentedControl for the Type (i.e., the type of the action’s sender parameter). Next, control drag from the remaining Segmented Controls (in order from top to ...

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