Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty gaps between UITabBar elements?

I'm having an issue with my UITabBar:

This is what it looks like in its different states:

enter image description here

As you can see, there's little empty areas between my elements and on the sides:

enter image description here

My Question is why isn't it like on the App Store app, where you do not have side or in between elements gaps?

enter image description here enter image description here

And this is how I am changing the appearance of the Tab Bar, with a background image that does NOT have any dividers:

[[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"UITabBarBG"]];

Following a method like explained here wouldn't work because of the gaps I have: http://blog.erikvdwal.nl/blog/2012/09/25/customizing-the-uitabbar-in-ios-5-and-ios-6/

Any help would be helpful!

Thanks!

like image 824
Mathieu Avatar asked Aug 16 '26 07:08

Mathieu


1 Answers

If you make your images are larger you will not have this issue, they can even overlap if you want the same separators as in the AppStore app.

See How can I add a custom divider image to the UITabBar?

like image 78
Ludovic Landry Avatar answered Aug 19 '26 05:08

Ludovic Landry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!