Hey, I'm using a custom size UITabBar with very large images.
I add images to the tab bar item as follows:
UITabBar *tabBar = self.tabBar;
UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0];
[tabBarItem1 setImage:[UIImage imageNamed:@"image"]];
[tabBarItem1 setImageInsets:UIEdgeInsetsMake(0, 0, 20, 0)];
Also, since the images are larger, I want them to hang more in the middle of the tab bar, so I am adding an insert.
My problem is that I program the insert, and then I press the button, the button starts itself. It maintains its width, but its height permeates it. Of course, I do not want this to happen, but I cannot understand what is happening.
Thanks Krtko
-Note for Mods Please block this topic
-Note for people answering my question. I appreciate your help, but at that time it was a known mistake, so please stop answering this question. thank you