Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Custom Tabbar

Hi,

I already have a a Tabbar View Controller set in the main.storyboard that is linked to 3 navigation controller. alt text

I tried many differents way but without success to make my tabbar like my design (following screenshot). alt text

My question is how to customize my tabbar to be exactly like my tabbar design?

1 Answer

Well, i won't be able to help you completely help you but i can offer some good advice.

Head over to your app delegate implementation and then create a new method(name it to your preference).

something like:

-(void)customTabBar{ (insert the method below that i give you) }

then you can start using the appearance proxy and call it on UITabBar.

for example: [[UITabBar appearance] setBarTintColor:[[UIColor colorWithRed:1.0 green:.5 blue:0.0 alpha:1.0]];

those aren't the exact values for the color you want.. but you can play around with the values till you get the color of your choice.

As far as the images go, you can just add them to your project. (Drag and Drop) Then click on the UITabBar item and head over to the attributes inspector, and select the image for the corresponding button.