【发布时间】:2012-02-15 13:53:39
【问题描述】:
我尝试了很多方法,但都没有成功。
这样我可以创建一个新的 UIBarButtonItem 并且它可以工作,问题是它像 backButton/ArrowBackButton 一样锁定:
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
this.NavigationItem.LeftBarButtonItem = new UIBarButtonItem ("Tillbaka", UIBarButtonItemStyle.Plain, delegate(object sender, EventArgs e) {
this.NavigationController.PopViewControllerAnimated (true);
});
}
试过了,还是不行:
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
this.NavigationItem.SetHidesBackButton(false,true);
}
【问题讨论】:
标签: c# uinavigationcontroller xamarin.ios uibarbuttonitem uinavigationitem