Discussion Forums  >  Uncategorized

Replies: 8    Views: 394

Jenny21
Code is Art
Profile
Posts: 182
Reg: Apr 14, 2011
USA, Kentucky
1,820
06/22/11 03:43 PM (14 years ago)

Tab Bar Color - Cannot Change

I'm trying to change the color of my tab bar (in v1.5, theme settings). Changing the color does not seem to work. Is there a solution, or is this a known glitch? Thanks
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
06/22/11 11:16 PM (14 years ago)
Hi Jenny. BT do not support color change on the TabBar. Only bottom ToolBar. You need good knowledge of programming if you can change the color of the Tabs.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/23/11 02:34 AM (14 years ago)
The control panel does have this choice in the Theme settings (good thinking Mackimack, it's kinda hidden). I'm surprised it's not changing colors and it's not a known glitch - could be now - funny. The color is set in a method called addTabColor in the BT_rotatingTabBarController.m file. This method is triggered when the apps interface is being constructed. This happens in the BT_application.m > buildAppInterface method. Have a look around line 415 in BT_application.m to see where this happens.
 
i4HimProductions
Aspiring developer
Profile
Posts: 65
Reg: Jan 21, 2011
location unknow...
650
like
06/28/11 08:00 AM (14 years ago)
I've had the same problem with the tab bar not changing color.
 
rpwiki
Aspiring developer
Profile
Posts: 25
Reg: Jun 03, 2011
Requa, CA
250
like
07/25/11 04:21 PM (14 years ago)
Is this still an issue? I noticed that I can't change the color also. I looked at the code - do I need to set the color in the BT_rotatingTabBarController.m or in application.m. David do you have a code example? Thanks all!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/25/11 09:10 PM (14 years ago)
The addTabColor method is in the BT_rotatingTabBarController.m file. It's a simple method that creates a new view to 'overllay' the tabs. I'm not a fan using this method (changing tab colors) because the standard Apple tab color seems appropriate. However, I understand if color is wanted. The method gets called when the interface is created. This happens in the BT_application.m file (in BT_Objects folder). Have a look at line 441, you'll see some logic where this is used. Not sure why it's not working? I tested here on few apps and did get it to work. Maybe do some testing / tinkering in that code block around line 441 and see what you can come up with?
 
rpwiki
Aspiring developer
Profile
Posts: 25
Reg: Jun 03, 2011
Requa, CA
250
like
07/25/11 09:25 PM (14 years ago)
Thanks David! I'll see if I can get it to work from the control panel first. I'm trying to change it from the global properties. if I can't, I'll let it go :-)
 
MobileMart
Aspiring developer
Profile
Posts: 5
Reg: Oct 25, 2011
UK
750
like
12/15/11 08:26 AM (14 years ago)
I've got the same problem - I can't get the tab bar background colour to change from black. Changing the theme value has no effect. Can anybody help? Thanks. (Running BT 1.5 and on an iPhone 4 running 5.01)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/15/11 12:26 PM (14 years ago)
Hi in UK: Hmm..not too many tab-bar color questions recently. It's not too tough to tinker with if you wanna hack around a bit. After downloading your project, have a look at the BT_rotatingTabBarController.m file. It's in the /Layout folder in Xcode. I may have typoed the spelling but you'll find it. Scroll to the end of this file, you'll see the method that runs to update the tabbers color. The method adds an overlay view to hold the color. Next, the logical question is, when does this method get triggered? This method should run when the app builds it's interface (refresh is clicked or app is first launched). Maybe do a Project Search for the method name to see where in the code the method is being fired.
 

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.