[MonoTouch] Mono.Dialog in same view.
Nic Wise
nicw at fastchicken.co.nz
Fri Oct 21 05:28:38 EDT 2011
The problem is in your appdelegate (and BTW, thanks for posting the
code :) makes life easier
you need to:
Make a tabbarcontroller
add in a navigationcontroller which has your dialogviewcontroller in it
add the Tabbarcontroller into the window
so:
window = new UIWindow (UIScreen.MainScreen.Bounds);
tabC = new UITabBarController ();
var homeScreen = new HomeScreen();
var searchScreen = new SearchScreen();
var manualScreen = new ManualScreen();
var settingsScreen = new SettingsScreen();
tabC.ViewControllers = new UIViewController [] {
homeScreen,
searchScreen,
manualScreen,
settingsScreen
};
window.AddSubview(tabC.View);
DemoReflectionApi();
window.MakeKeyAndVisible();
return true;
However, you'll also need to change your homescreen to be a
UINavigationController, so you get the navbar etc and can push things.
I tend to do this:
http://pastebin.com/T2tpi7QX
Hope that helps.
On Fri, Oct 21, 2011 at 08:23, Mittchel <mittchel at gmail.com> wrote:
> Some sample code:
>
> AppDelegate: http://pastebin.com/5K21eaTa
> HomeScreen.cs: http://pastebin.com/gi96p9eX
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Mono-Dialog-in-same-view-tp3924501p3924510.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
More information about the MonoTouch
mailing list