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

Adding a Pop Color my button still can not random color. why?

i have followed all instruction from Mr Pasan but my button still can not random the color. why? xcode ver 7.0 and got some error on AppDelegate "setStatusBarStyle(_:animated:)' was deprecated in iOS 9 : use -[UIViewController preferredStatusBarStyle]

someone try to help me.. thank's and sorry for bad English

1 Answer

Can you post the full code syntax, are you coding in Objective-C or Swift?

A bunch of things changed in iOS9 & with Swift 2 (from Swift 1.2) so it's kind of hard to pinpoint what might be the issue without further details.