3

I have to set a title, which is a bit long, in a UITabBarItem; so the question is:

Is it possible to set a title which has two lines in a UITabBarItem?

I have tried the following way (but it does not work):

UITabBarItem* myTabBarItem = ... //Allocation and initialization -via Objective-C code or Interface Builder-
myTabBarItem.title = @"Hello\nHello";

However, the text (title) that I can see at the bottom of the UITabBarItem is "Hello Hello" (that is the two "Hello's" are placed in one line) instead of "Hello\nHello" (one hello in one line and the other in another line).

Thanks,

Genar
  • 725
  • 1
  • 10
  • 27

1 Answers1

-2

Check the following Links(Most of the customization of the tab-bar controller)

  1. Implement a Custom Tab Bar
  2. Tabbar with custom colors
  3. RKTabView - ready to use solution
  4. RX-Tabbar controller
  5. Custom tabbar

Best Regards,

Community
  • 1
  • 1
NIKHIL
  • 2,719
  • 1
  • 26
  • 50