Hey I am using a custom sized UITabBar with extra large images.
I add the images to the tab bar item like this:
UITabBar *tabBar = self.tabBar;
UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0];
[tabBarItem1 setImage:[UIImage imageNamed:@"image"]];
[tabBarItem1 setImageInsets:UIEdgeInsetsMake(0, 0, 20, 0)];
Also because the images are larger I want them to hover more in the middle of the tab bar, so I add the inset.
My issue is when I program the inset and then click on the button, the button squishes in on its self. It maintains its width, but its height squishes in on its self. I of course don't want this to happen, but I can't seem to find out whats going on.
Thanks, Krtko
-Note for Mods Please lock this thread
-Note for people answering my question. I appreciate your help but it was a known bug at the time, so please stop answering this question. Thank you
Are you seeing this on iOS 7 only?
7.1 seemed to introduce a bug with tab bar image insets. If you continually tap or hold the tab, it grows or shrinks depending on the insets. If you tap on another tab, the tab bar image goes back to normal right?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With