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
Steven Rayzman
2,423 PointsPreserve Original Color Of UITabBar Icon
I have a UITabBar, and the original color of the images that I have used as the UITabrBarItem's is white. However, when I use them in the project xcode automatically sets them to gray. How can I preserve this white color? I am using swift, so please make all answers in swift, thank you so much. Stone Preston
2 Answers
Thomas Oliver Bastable
Python Development Techdegree Graduate 29,026 PointsThis StackOverflow Question should help you: http://stackoverflow.com/questions/15086276/uitabbaritem-image-color-is-grey-while-original-image-is-white
Thomas Oliver Bastable
Python Development Techdegree Graduate 29,026 PointsAh sorry Steven, this one should do the job: http://stackoverflow.com/questions/26704896/swift-uitabbaritem-colors
Steven Rayzman
2,423 PointsThankyou for your help so far. I'm new to IOS so I am unsure of what to add where? Could you help me out? Thomas Oliver Bastable I just want to change the color of the bar item to its original?
Steven Rayzman
2,423 PointsSteven Rayzman
2,423 PointsI'm sorry, I forgot to mention that I am using Swift and am not very familiar with objective-c. Could you by any change convert it to swift? Thomas Oliver Bastable