Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 752

mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
01/09/13 11:24 PM (11 years ago)

Tutorial iOS: Change UI tab bar highlight color iOS

If you want to change the highlight color of your app’s tab bar it can be easily done starting with iOS5. Add one simple line to the app delegate didFinishLaunching method. In my case I wanted something other than the default blue. If you see below I chose purple! http://www.snurlz.com/wp-content/uploads/uitab-highlight.png In BT apps, add below didFinishLaunching method //set the configuration file name configurationFileName = @"BT_config.txt"; //show debug in output window? showDebugInfo = TRUE; //init the allowed input characters string. ONLY these characters will be allowed in input fields. allowedInputCharacters = @"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@!$"; //change tab bar image tint color [[UITabBar appearance] setSelectedImageTintColor:[UIColor purpleColor]]; Have fun!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/09/13 11:47 PM (11 years ago)
That's slick! Cheers! -- Smug
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
01/10/13 01:10 AM (11 years ago)
Cool tips, thanks for your time and efforts. KorkutAta
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/10/13 03:10 AM (11 years ago)
Again, thanks @Mysps. Keep them coming!! Farcat
 
Black White
I hate code!
Profile
Posts: 292
Reg: Feb 22, 2012
hanoi
4,770
like
01/10/13 03:35 AM (11 years ago)
hi, thank @Mysps so what about this tab bar ? http://bit.ly/RHyzsL anyone know how can do that in BT ?
 
Cakebit
Code is Art
Profile
Posts: 500
Reg: Dec 15, 2010
In your local b...
16,500
like
01/10/13 09:27 AM (11 years ago)
Awesome! These are SO great!!
 
RobinvanKrieken
Aspiring developer
Profile
Posts: 50
Reg: Dec 20, 2012
Amsterdam
6,500
like
01/15/13 02:50 AM (11 years ago)
Hi, I am trying to get this done for an Android project. I've managed to change the colors of my bottom toolbar but those are full blown colors. I'd like to just change the color of the selected button and keep the radient. The above sounds good but I don't know in which file and what "Android-language" to use to get it working. I've had many people advising me to read http://developer.android.com/guide/practices/ui_guidelines/icon_design_tab.html, which was helpful. And a few more similar threads but none of them explain to me how and where to makes changes. Can anyone point me in the right direction? Thx in aadvance! Robin
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/09/13 12:49 PM (11 years ago)
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
04/21/13 09:59 AM (11 years ago)
Nice! Red!
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
05/21/13 10:52 AM (10 years ago)
ummm which class are we looking at? I cant find anything under BT Apps...
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
05/21/13 10:55 AM (10 years ago)
lol nevermind
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.