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
Color of the button does not changes??
As I have choose background for button as yellow with my whole app background as yellow later when the background of app is changed the button does not changes its background and if the buttons tint colour is set to default that is tint the it changes its tint colour could anyone suggest me what can i do i am having an idea that we can change default tint colour of the button to blue from UIKit but i have no idea how would it be done .....CAn anyone guide me
Can you post your code? It will be easier so we can see exactly what's going on.
Probably you accidently chose a Text Color from the Attributes Inspector panel. So no matter what your tint color is you always see the text color. To fix the problem, make sure your button's text color is set to default.
Missy Karman2,242 Points
I was having this same issue. To fix it, inside viewDidLoad(), I put funFactButton.tintColor = view.backgroundColor and this solved it.