Xamarin Forms: how to hide back button title?

后端 未结 4 2205
一个人的身影
一个人的身影 2021-02-20 04:54

In my Xamarin Forms iOS application the previous page name is also appearing with the back button in all pages. Is there any way to hide the title of the previous page?

4条回答
  •  -上瘾入骨i
    2021-02-20 05:51

    There is also one workaround to hide back button title globally in whole application. Add in your AppDelegate.cs in FinishedLaunching method:

    UIBarButtonItem.Appearance.SetBackButtonTitlePositionAdjustment (new UIOffset (-100, -60), UIBarMetrics.Default);
    

提交回复
热议问题