2014-01-12 125 views
3

我正在使用NavigationItem來驅動應用程序的導航。對於我所有的控制器從DialogViewController繼承的,背面按鈕不會顯示,即使我做DialogViewController丟失後退按鈕

BackButtonBarItem = news UIBarButtonItem(..) 

後退按鈕永遠只顯示了對話,但不會爲每一個其他類型的控制器。我錯過了什麼嗎?

回答

4

使用重載DialogViewController構造

public DialogViewController (RootElement root, bool pushing) 

如果你的DVC被推到NavigationController的布爾推動參數應該是真實的。使用代替

0

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

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