// This method is invoked when the application has loaded its UI and its ready to run
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
HttpDebug.Start();
MonoMobileApplication.NavigationController = new NavigationController();
MonoMobileApplication.Window = new UIWindow(UIScreen.MainScreen.Bounds);
MonoMobileApplication.Window.AddSubview(MonoMobileApplication.NavigationController.View);
MonoMobileApplication.Window.MakeKeyAndVisible();
MonoMobileApplication.NavigationController.View.Alpha = 0.0f;
#if DEBUG
var thread = new System.Threading.Thread(() =>
{
using (NSAutoreleasePool pool = new NSAutoreleasePool())
{
InvokeOnMainThread(() => { Startup(); });
}
});
thread.Start();
#else
InvokeOnMainThread(() => { Startup(); });
#endif
return(true);
}