Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Tab Bar Color ?

Hi there,

How can I changed the color of the tabbar on an iphone application ?

I would like to change it in blue.

Thanks

— asked May 27th 2010 by alexandre duquenoy
  • tabbar
  • tabbedbar
  • tabgroup
0 Comments

5 Answers

  • As far as I know, it's not possible to change the color of the built-in tab bar.

    You have two choices:

    1. Use the built-in native iPhone tab bar with its blue icons on black background
    2. Build your own tab bar completely from scratch, creating imageViews for buttons and adding event listeners to them
    — answered May 27th 2010 by Nick Haffie-Emslie
    permalink
    1 Comment
    • i did this adding imageViews and Event Listeners but when i change to new window i had to create them all over again!!

      — commented July 19th 2010 by gmb Bi
  • As far as I understand it, you cannot change the colors on the built-in tab bar, I'm not sure what other posters are referring to. if you want to do a custom tab bar, you'd need to do it with Titanium views and custom user interface controls. The Tweetanium sample app does this.

    — answered March 18th 2011 by Kevin Whinnery
    permalink
    0 Comments
  • ok, too bad :(
    thanks anyway !

    — answered May 27th 2010 by alexandre duquenoy
    permalink
    0 Comments
  • in fact it's possible to do it in Objective-C :
    http://silentmac.com/?p=386

    i will look how to do it with Appcelerator now that we have access to classes/Xcode

    — answered June 2nd 2010 by Stephane Pelamourgues
    permalink
    0 Comments
  • Any solution found ? Titanium API update to do so ?

    — answered December 3rd 2010 by Moshe Marciano
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.