gpt4 book ai didi

iphone - Monotouch.Dialog - 设置后退按钮

转载 作者:行者123 更新时间:2023-12-03 19:19:31 24 4
gpt4 key购买 nike

我使用 MonoTouch.Dialog DialogViewController 来创建一个漂亮的 View 。

private RootElement _createRoot(){
return new RootElement ("Buy a Property Report"){

new Section (""){
new StringElement ("View Sample", ()=>{ }),
new StringElement ("Enter Address", ()=>{ }),
new StringElement ("Locate This House", () => { }),
new StringElement ("My Reports", () => { })
}
};
}

在以下屏幕上,我需要有一个后退按钮,该按钮与我在之前的“购买特性报告”到“主页”中指定的按钮不同

我就是这么做的。

public override void ViewDidLoad ()
{
base.ViewDidLoad ();
this.NavigationController.NavigationBar.TopItem.Title = "Home";
}

有没有办法在 Monotouch.Dialog 中做到这一点?

最佳答案

我不确定我是否很好地理解你的问题,但尝试在对话框 Controller 上使用它:

this.NavigationItem.BackBarButtonItem.Title = "Home";

关于iphone - Monotouch.Dialog - 设置后退按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5307917/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com