Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
Hey guys, in an application I have UITabbarController with 5 tabs. In none of the 4.7 inhes or 5.5 inches devices tab title can be seen. All tabs look only with image. But in iPhone X title is displayed beside tab image. I dont want such a case. I want in all devices only image can be displayed. I checked tabs in storyboard "title" property is empty text but still it is displayed in iPhone X simulator.
p.s Use Safe Area Layout Guides is ticked in storyboard.
What can be reason for that?
 
Simply change tab bar title color to clear color.

Code:
    [[UITabBarItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor clearColor]}
                                             forState:UIControlStateNormal];
    [[UITabBarItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor clearColor]}
                                             forState:UIControlStateHighlighted];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.