Hello everyone,

i have my main application screen with 3 buttons, one of which is settings, 
after its pressed, new DialogViewController is presented. 
I would like to use modal presentation, so instead of using 

this.NavigationController.PushViewController(_pnl2000Settings,true);

i am currently using

this.NavigationController.PresentViewController(_pnl2000Settings,true,null);

But with this in mind, after my settings view is loaded, there is no navigation 
bar, which i need. So i tried to add it manually from within 
DialogViewController, but i can't find a way for Root element to be displayed 
bellow navigation bar, currently its displayed over navigation bar. 

So after searching a net, one of the solution is to create new 
UINavigationController, add my DialogViewController to it, and then push my 
newly created UINavigationController.

_pnl2000Settings = new pnl2000Settings();
ncSettings = new UINavigationController(_pnl2000Settings);
this.NavigationController.PresentViewController(ncSettings,true,null);

This will do the trick, but is this good approach? 


Thanks!







_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to