Note that there are some explanatory texts on larger screens.

plurals
  1. POUITabBarItem with custom title color and images
    primarykey
    data
    text
    <p>I`m trying to customize my TabBar in xcode,ios, however I just found ppl saying that this is not customizable! also, i did find some sort of solutions, but none of them are working for me.</p> <p><strong>Pretty much I want to change the UITabBarItem title(text) color, and also change the 2 images inside it, the normal one and the selected one!</strong></p> <p>I tried to iterate inside my UITabBar subviews to see if I find something, but any success:</p> <pre><code>for (UIView *view in [self.tabBarController tabBar].subviews) { NSLog(@"Class: %@",[view class]); } </code></pre> <p>the output of this was:</p> <pre><code>2011-05-18 18:15:24.031 EventApp[52235:207] Class: UIImageView 2011-05-18 18:15:24.032 EventApp[52235:207] Class: UITabBarButton 2011-05-18 18:15:24.032 EventApp[52235:207] Class: UITabBarButton 2011-05-18 18:15:24.033 EventApp[52235:207] Class: UITabBarButton 2011-05-18 18:15:24.033 EventApp[52235:207] Class: UITabBarButton 2011-05-18 18:15:24.034 EventApp[52235:207] Class: UITabBarButton </code></pre> <p>and I cannot import that UITabBarButton obj to work with it!</p> <p>Some solution for that?! also I posted some links bellow which I`ve looked, but didnt work!</p> <p><a href="https://stackoverflow.com/questions/292041/custom-uitabbaritem-image-title-on-iphone">Custom UITabBarItem Image/Title on iPhone</a></p> <p><a href="https://stackoverflow.com/questions/3051958/changing-text-color-of-uitabbaritem/3052390#3052390">changing text color of uitabbaritem</a></p> <p><strong>EDIT</strong> What I wanna do is somethink like the follow: <img src="https://i.stack.imgur.com/g1OcO.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload