4

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

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 中做到这一点?

4

1 回答 1

2

我不确定我是否理解您的问题,但请尝试在对话框控制器上使用它:

this.NavigationItem.BackBarButtonItem.Title = "Home";
于 2011-03-15T10:45:01.120 回答