3

I am using the NavigationItem to drive the navigation of the application. For all of my controllers inheriting from DialogViewController, the back button doesn't show, even if I do

BackButtonBarItem = news UIBarButtonItem(..)

The back button never shows only for dialogs, but does for every other type of controller. Am I missing something?

Brian Mains
  • 50,520
  • 35
  • 148
  • 257

2 Answers2

5

Use the overloaded DialogViewController constructor

public DialogViewController (RootElement root, bool pushing)

the bool pushing parameter should be true if your DVC is being pushed onto a NavigationController.

Jason
  • 86,222
  • 15
  • 131
  • 146
2

use

public YourDialog () : base (UITableViewStyle.Grouped, null, true)

instead of

public YourDialog () : base (UITableViewStyle.Grouped, null)
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
Sam Xu
  • 252
  • 3
  • 5