Changing the default UITabBarController background color.

Posted by Scott on Stack Overflow See other posts from Stack Overflow or by Scott
Published on 2010-03-04T00:02:35Z Indexed on 2010/04/09 5:33 UTC
Read the original article Hit count: 971

Hello,

So I have an iPhone application running that is controlled at the highest level by a UITabBarController. It is the default black Tab Bar at the bottom that you see in many iPhone apps. I am kind of new to iPhone SDK programming, and I know I have seen other apps that have their own background color for the Tab Bar at the bottom. I am not sure if they are using this tab bar as I am, as the main controller for their app, but the question applies to this:

How do I change the background color of the main UITabBarController in my application? I wanted to change it to a dark shade of green similar to the colors of the navigation bars and labels I have placed in my app. I find it weird how Apple makes it really easy to change the color of Navigation Bars (not controllers), and other things, but when it comes to controllers (in this case a Tab Bar Controller), I cannot find a single way to implement this cleanly and efficiently.

Thanks!

-Scott

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about objective-c