Exemplo n.º 1
0
		public override bool WillFinishLaunching (UIApplication application, NSDictionary launchOptions)
		{
			Window = new UIWindow (UIScreen.MainScreen.Bounds);
			navigation = new NavigationService (Window);

			//сопоставление ключей и вьюшек
			navigation.Register (TouchConstant.Pages.DashboardViewKey,typeof(DashboardView));
			navigation.Register (TouchConstant.Pages.ScheduleViewKey,typeof(ScheduleView));
			navigation.Register (TouchConstant.Pages.AboutViewKey,typeof(AboutView));
			navigation.Register (TouchConstant.Pages.InfoStationViewKey,typeof(InfoStationView));

			//позволяет с помощью ключа оборачивать вьюку в UINavigationController
			navigation.ConvertView<UIViewController>(view=>{
				var navController= new UINavigationController (view);
				return navController;
			},"navController");
			//билдер для Bootstrap
			bootstrap = new TouchBootstrapBuilder (new CoiocToEasyContainer ()).WithNavigation (navigation).Build ();
			return true;
		}