Silver Challenge: Controller Logic

Add a UISegmentedControl to HypnosisViewController’s view with segments for Red, Green, and Blue. When the user taps the segmented control, change the color of the circles in HypnosisView. Be sure to create a copy of the project and work from that copy while attempting this challenge.

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.