Multiple lines in UITabBarItem Label

前端 未结 4 1781
说谎
说谎 2021-01-19 12:06

I\'ve tried many things but impossible to find a way to put the label of a UITabBarItem with a lineNumber customised.0 (i would like to get the title on 2 lines).

Is

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 12:31

    you can not do this with UIBarButtonItem because it doesn't have property titleView like UINavigationItem!

    You can set only string as title and tab image! that's it!

    If you have option to set label as titleview of tabbaritem then you can take label with numberofline 0 but here you can set string only!

提交回复
热议问题