Below is how I instantiate the DialogViewController. I am using the search
differently, I am using it to search a remote server for emails. and then
populating root with message objects. I then can push another
DialogViewController with aditional settings. When I return to my main
screen is when my Root.Count turns to 0. I have followed in debug mode and
I just cant figure out where its getting wiped out. Can you only use 1
DialogViewController class?
public override bool FinishedLaunching (UIApplication app,
NSDictionary
options)
{
window.AddSubview (navigationController.View);
RootElement root = new RootElement("Email");
EmailView emailView = new EmailView(root);
emailView.NavigationItem.RightBarButtonItem = new
UIBarButtonItem("Advanced", UIBarButtonItemStyle.Plain, delegate {
AdvancedClicked();} );
emailView.NavigationItem.LeftBarButtonItem = new
UIBarButtonItem("Settings", UIBarButtonItemStyle.Plain, delegate {
SettingsClicked();} );
navigationController.PushViewController (emailView,
true);
window.MakeKeyAndVisible ();
return true;
}
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Root-elements-disapear-when-returning-from-dialog-tp3647436p3649339.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch