UITabBarItem with custom title color and images

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.

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!

I tried to iterate inside my UITabBar subviews to see if I find something, but any success:

for (UIView *view in [self.tabBarController tabBar].subviews) 
{
    NSLog(@"Class: %@",[view class]);

}

the output of this was:

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

and I cannot import that UITabBarButton obj to work with it!

Some solution for that?! also I posted some links bellow which I`ve looked, but didnt work!

Custom UITabBarItem Image/Title on iPhone

changing text color of uitabbaritem

EDIT Что я хочу сделать, это что-то вроде следующего: enter image description here

6
задан Community 23 May 2017 в 11:52
поделиться