RootElements in NavigationController
Hi,
II have the following code:
public UINavigationController _nav;
private UIBarButtonItem _button;
public TablaDialog () : base (UITableViewStyle.Plain, null)
{
Root = new RootElement ("ROOT") ;
_nav = new UINavigationController(this);
Section s = new Section();
RootElement r = new RootElement("Top");
r.createOnSelected=addViewController; ///If I comment this line work it
s.Add(r);
Root.Add(s);
}
private UIViewController addViewController(RootElement e)
{
DialogViewController d = new DialogViewController(e);
Section s = new Section ("Seccion");
s.Add(new RootElement("Element"));
e.Add(s);
return d;
}
}
I want set the "back" button into _nav when I stay in "Top". If I comment
de line of I mention, it's ok but I lost the behaviour that I want.
Thanks and sorry for my english.
Juan M Gómez Álvarez
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch