Remove text from Back button keeping the icon

前端 未结 29 2663
栀梦
栀梦 2020-11-28 23:26

I want to remove the text from the back button, but I want to keep the icon. I have tried

let backButton = UIBarButtonItem(title: \"\", style: UIBarButtonIt         


        
29条回答
  •  暖寄归人
    2020-11-29 00:17

    Xcode 10, Swift 4+

    Similar answer to the others here but it is worth noting that if the text still isn't cleared, you have to click Space then Enter.

提交回复
热议问题