Discussion Forums  >  Status Bar, Navigation Bar

Replies: 11    Views: 365

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
10/08/14 03:54 AM (10 years ago)

Need Updated Fix For Changing Tab Bar Color iOS!

Hi having major headache trying to change the Tab Bar colour. I have checked the previous tutorials but they don't apply to the current source code downloaded. Does anyone know how to change in Xcode for iOS?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 04:03 AM (10 years ago)
Its OK, found the solution: https://www.buzztouch.com/files/howtos/ios7%20tab%20nav%20bar%20changes%20v2.pdf for anyone else who needs help with this.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 04:13 AM (10 years ago)
Sorry guys I thought this would work, but the fix didn't work, still stuck.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
10/08/14 04:41 AM (10 years ago)
You should check out Cris1's Tab Bar Utility plugin. This thing is awesome. You can even use color tab bar images. Dave
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 05:06 AM (10 years ago)
Hi Calypso I've used the Tab Bar plugin and indeed its good, but its only for iOS I need something for both iOS and Android.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/08/14 10:00 AM (10 years ago)
Go into your BT_tabBarController.m (BT_Layout folder) at line 54 inside viewDidLoad, you should see something like: http://pastebin.com/wahBe9HH Make your changes there, and let me know if that works, seems to work for me. Hope this helps. David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 10:52 AM (10 years ago)
Cool, man! Thanks, will let you know how I get on.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 10:56 AM (10 years ago)
Hi Mr David not sure where I should add the code shown in your link, can you advise?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/08/14 11:07 AM (10 years ago)
Worked it out. Thank Mr David! For anyone else Go into your BT_tabBarController.m (BT_Layout folder) at line 48 inside viewDidLoad, you should see something like: //after the tabber's view loaded - (void)viewDidLoad { [super viewDidLoad]; [BT_debugger showIt:self message:[NSString stringWithFormat:@"view loaded%@", @""]]; Just below this bit of code add this: // ios 7 -- changes icon tint and bar tint [[UITabBar appearance] setTintColor:[UIColor whiteColor]]; [[UITabBar appearance] setBarTintColor:[UIColor blackColor]]; your final code should now look like this: //after the tabber's view loaded - (void)viewDidLoad { [super viewDidLoad]; [BT_debugger showIt:self message:[NSString stringWithFormat:@"view loaded%@", @""]]; // ios 7 -- changes icon tint and bar tint [[UITabBar appearance] setTintColor:[UIColor whiteColor]]; [[UITabBar appearance] setBarTintColor:[UIColor blackColor]]; } Should now be working.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/08/14 11:19 AM (10 years ago)
No problem :-) David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
almosturban
Aspiring developer
Profile
Posts: 19
Reg: May 23, 2011
Canada
1,840
like
10/26/14 08:28 PM (10 years ago)
Mr David and Dragon007, Thanks for your help, this solved something I was stuck on for hours. One last item I am having trouble adjusting is the description that appears below my icons. For example I have the text: Home below my Home Icon and Video below my Video icon. Do you know of a way to change that font color as well? Thank you, Henry
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
10/27/14 01:26 AM (10 years ago)
Hi Almosturban I was under the impression that this code also included changing the colour of the font colour under the icon. Have you tried changing the colour in the code to see? If not, I will find out for you, but cannot do this until much later in the day as I have just rolled out of bed.
 

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.