如何在xamarin.ios中全局隐藏导航栏后退按钮标题

如何在xamarin.ios中全局隐藏导航栏后退按钮标题,xamarin,xamarin.ios,xamarin.forms,Xamarin,Xamarin.ios,Xamarin.forms,我在AppDelegate中使用了此代码, UIBarButtonItem.Appearance.SetBackButtonTitlePositionAdjustment (new UIOffset (-100, -60), UIBarMetrics.Default); 但它的位置变为底部。我附上了结果截图 解决方案1:设置标题颜色而不是标题位置 解决方案2:仅设置水平偏移。 非常感谢@Cole Xia。当我使用这段代码时,UITextAttributes attribute=newUITex

我在AppDelegate中使用了此代码,

UIBarButtonItem.Appearance.SetBackButtonTitlePositionAdjustment (new UIOffset (-100, -60), UIBarMetrics.Default);
但它的位置变为底部。我附上了结果截图

解决方案1:设置标题颜色而不是标题位置 解决方案2:仅设置水平偏移。
非常感谢@Cole Xia。当我使用这段代码时,UITextAttributes attribute=newUITextAttributes{TextColor=UIColor.Clear};UIBarButtonItem.Appearance.SetTitleTextAttributes(属性,UIControlState.Normal);Backbutton标题已隐藏,但工具栏中添加的任何文本也已隐藏。如何解决这个问题
UITextAttributes attribute = new UITextAttributes {TextColor = UIColor.Clear };
UIBarButtonItem.Appearance.SetTitleTextAttributes(attribute, UIControlState.Normal);
UIBarButtonItem.Appearance.SetBackButtonTitlePositionAdjustment (new UIOffset (-100, 0), UIBarMetrics.Default);