IOS 5 hides text labels tabBarItem

Is it possible to hide text labels in tabBarItem ?

My text labels are part of the images that I use as a replacement because they have some bevels / shadows that I cannot replicate in the code.

+4
source share
2 answers

As far as I know, in the view manager associated with the tab, you can set:

 self.title=@ ""; 

But in the case of the UINavigationController this also sets the navigation bar title to @"" , so you must override the titleView navigation bar.

+1
source

You can simply leave the text field blank. For instance:

 -(void)setBlankTitleForTabBarItem:(UITabBarItem*)Item{ [Item setTitle:nil]; } 
0
source

Source: https://habr.com/ru/post/1411933/


All Articles