Is it possible to remove the images in the UITabBarItem and aligned vertically the title

前端 未结 3 1540
闹比i
闹比i 2021-01-05 01:38

I have a UITabBar but i don\'t want to set the images I just want to set the title, and I want this title to be aligned vertically. Is this possible?

Th

3条回答
  •  隐瞒了意图╮
    2021-01-05 02:10

    To hide the tab bar item icon/image in Xcode 10 and swift 12, select the tab bar item and then:

    1) Show the attributes inspector
    2) Set "System Item" with value "Custom"
    3) Let "Selected Image" and attributes empty
    4) Let "Bar Item -> Image" attribute empty

    That's it to hide.
    I do not know how to align vertically yet, but if I discover how to do it, I came back and I'll complement the answer.
    See pictures of a Mentioned on the link: Can i only display text in tab bar item and change the style and position

提交回复
热议问题