How to remove all navigationbar back button title

后端 未结 30 3404
后悔当初
后悔当初 2020-12-12 15:42

When I push a UIViewController, it has some title in back button at new UIViewController, if the title has a lot of text, It does not look good in

30条回答
  •  伪装坚强ぢ
    2020-12-12 16:16

    I don't know why but I found problem with hiding back button title in iPhone pluses but in device without plus shows correct with

    leftBarButtonItem.title = ""
    

    So I found simple way. It is set tint color to clear in NavigationBar of NavigationViewController in autolayout. It may be problem if you use icons or text tiles with tint. But in my case I don't use it as all.

提交回复
热议问题