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 trialJordan Ward
2,395 PointsHey guys in my version of Xcode tint.Color is passing compiler but not doing the command in the app.
So I typed FunFactLabel.tintColor = randomColor and it passed compiler fine. But in the app itself the text did not change color. So I went to the storyboard and manual changed it and for me it would change under text Color not tint Color. I wonder if anyone has the same thing. I tried to use under UIColor textColor but nothing came up. Any help would be great.
1 Answer
Jeff McDivitt
23,970 PointsYou should be using it not he button not the label
@IBAction func getFactsBtn(_ sender: Any) {
factsLabel.text = factProvidor.randomFact()
let randomColor = colorProvidor.randomColor()
view.backgroundColor = randomColor
\\Here is the button
funFactBtn.tintColor = randomColor
}