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!
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
Rogelio Valdez6,244 Points
Tint color of funFactButton does not change.
I have a problem where the color of the UIButton does not change. I already used a println(funFactButton.tintColor) and the color is changing but it is not displayed.
What I tried: I changed the color of the UIButton in the attributes inspector to default and now the color changes to match the background (as expected) except at the beginning of the program since it shows as blue (default color). I think the Attribute Inspector is somehow overriding the change color or maybe I changed an option in there that does not let me change the color unless I have it default.
I tried using other color instead of default like dark color and the UIbutton will stay dark.
The problem with this solution: The first time the UIButton is displayed has a blue tint(default).
Anyone have an Idea of why this is happening?
Vittorio Somaschini33,371 Points
I am not sure what the issue could be here.
Can we have a look at your code please?