Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 11    Views: 72

Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
03/25/14 12:35 PM (10 years ago)

White text in nav bar?

This should be pretty simple. Under Theme I can set the nav-bar color to for example black. That however makes no sense as long as there is no setting for the text color. Black on black is not very user friendly :) So - how do I change the nav-bar TEXT color to white? As well as the buttons and symbols. I have read most posts about this but it seem to apply to different versions of BT, xcode or iOS. I am on current (not self hosted) version of BT, xcode 5.1 and of course this should work on all iOS versions. Thanks
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/25/14 01:25 PM (10 years ago)
I am not sure on the nav bar text, but I am pretty sure you can change that in the code within your project. As for the button text you can do that with the button layout/ color options for each screen you are using. You can also set the background color there as well. I hope this is what you are looking for.
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/25/14 01:40 PM (10 years ago)
Thanks for the fast reply, but I was kind of hoping to save some time digging trough the code if someone had changed text color before.
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
03/25/14 01:41 PM (10 years ago)
Hi Tubaad, Changing your Nav Bar Text Color is super easy! The code is already in the BT Project. Just go to your appNameHere_appDelegate.m file (replace appNameHere with your app name) the file is in your BT_Config folder. Replace line 89 of _appDelegate.m with this line of code: [self setNavBarTitleTextColor:@"#ffffff"]; That's it! Run your app again to see the change! -Cake
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/25/14 01:45 PM (10 years ago)
There you go. Thanks @cakebit. I knew it was changable in the code, but I am at work right now so I don't have it in front of me to know which line it is was. @tubaad if you go into one of you menu screens within BT and look under select background color or tect color you can hover over the color you want and it will give you the "#" code for that color. Just write it down and when you go into the project code add that in where @cakebit said and save it and it should be good to go.
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/25/14 01:47 PM (10 years ago)
Damn, you guys are fast! Worked like a charm. I hope one day to be able to contribute myself to this forum :)
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/25/14 01:50 PM (10 years ago)
You will it just takes a little time. I am just getting to where I am somewhat comfy repling to some to help out where others have helped me as well.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/26/14 10:03 PM (10 years ago)
I'm having the same problem, and that line of code was already there for me, but I simply cannot get the text to be anything other than white! I've tried building for iOS targets from iOS 6 - iOS 7, but to no avail. Anybody have any thoughts? Mark
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
03/26/14 10:14 PM (10 years ago)
@GoNorthWest, You are using Hex color codes, correct? I have had no problems changing the color using Hex color codes, Have you cleaned your project and reset the simulator?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/26/14 10:38 PM (10 years ago)
Yep, yep and yep! It's odd the code was already there, but it was exactly as you wrote it above. I'll compare it to a project I have that I know works, and figure out the difference. Thanks! Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/04/14 09:34 AM (9 years ago)
what is the equivalent of appDelegate.m for android?
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
04/14/20 01:23 PM (4 years ago)
Hi, Im guessing this thread is most likely outdated now as I've tired to look at the above fix for that line of code not to be there (line 89) Is anyone able to point me in the right direction as to how to change the nav bar text colour.
 

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.