How do i remove text from back button on navbar within Xcode?

后端 未结 8 1781
醉酒成梦
醉酒成梦 2021-02-09 05:49

I set an arrow custom image to navigation bar by adding the following code in app delegate, it works but now im looking to remove the text completely for back button.

         


        
8条回答
  •  孤城傲影
    2021-02-09 06:07

    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(-100.f, 0) forBarMetrics:UIBarMetricsDefault];
    

提交回复
热议问题