Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift Improving Our User Interface Adding a Pop of Color

Changing background color of the view randomly

I seem to have two views in my app. The first view contains the second view (the second view contains the labels and the button) and also the carrier, time and battery percentage information. Whenever I click the button the color change occurs in the first view. How do i change the color of the second view and not the first.

Can we see your code..?