Beispiel #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method
            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var movies = new Movies();

            var movieController           = new MovieController(movies);
            var movieNavigationController = new UINavigationController(movieController);

            var movieTopRatedController           = new MovieTopRatedController(movies);
            var movieTopRatedNavigationController = new UINavigationController(movieTopRatedController);

            var tabBarController = new TabBarController()
            {
                ViewControllers = new UIViewController[]
                {
                    movieNavigationController, movieTopRatedNavigationController
                }
            };

            this.Window.RootViewController = tabBarController;

            this.Window.MakeKeyAndVisible();

            return(true);
        }
Beispiel #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var movieSearchController           = new MovieController();
            var movieSearchNavigationController = new UINavigationController(movieSearchController);

            var movieTopRatedController           = new MovieTopRatedController();
            var movieTopRatedNavitationController = new UINavigationController(movieTopRatedController);

            var tabBarController = new TabBarController()
            {
                ViewControllers = new UIViewController[] { movieSearchNavigationController, movieTopRatedNavitationController }
            };

            this.Window.RootViewController = tabBarController;
            this.Window.MakeKeyAndVisible();
            return(true);
        }