Enabling Color Changes

You will now extend the Colorboard application to allow the user to choose a color and save it to a list of favorite colors.

Back in Colorboard.storyboard, add one UITextField, three UILabel objects, and three UISlider objects to the view of BNRColorViewController so it looks like Figure 28.18.

Figure 28.18  Configuring the view for BNRColorViewController

Configuring the view for BNRColorViewController

Let’s have the background color of BNRColorViewController’s view match the slider values. In BNRColorViewController.m, add outlets to the text field and three sliders in the class extension.

@​i​n​t​e​r​f​a​c​e​ ​B​N​R​C​o​l​o​r​V​i​e​w​C​o​n​t​r​o​l​l​e​r​ ...

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.