I had the same problem, and the reason was that the "Title" was missing, so the navigation controller without a name does not show the "back" button.
The solution was easy when I generated root elements, which I forgot for the name for the first root, like this:
var root = new RootElement("Settings"){
new Section("Current server"){
new RootElement("Server", new RadioGroup (0)){
}
},
My legacy DialogViewController constructor, for example:
public partial class SettingsViewController : DialogViewController
{
public SettingsViewController () :
base (UITableViewStyle.Grouped, null, true)
{
Root = GetRoot();
}
It works like a charm; -)
By the way: in the field of view, I add a button and reload the data:
public override void ViewWillAppear (bool animated)
{
NavigationItem.SetRightBarButtonItem(
new UIBarButtonItem("Add Server", UIBarButtonItemStyle.Plain, (sender,args) => {
NavigationController.PushViewController(new AddServerDialogViewController(), true);
}), true);
ReloadData();
base.ViewWillAppear(true);
}
source
share