Beispiel #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var spacePurple = UIColor.FromRGB(64, 0, 128);

            UIView.Appearance.TintColor             = spacePurple;
            UISlider.Appearance.ThumbTintColor      = spacePurple;
            UISwitch.Appearance.TintColor           = spacePurple;
            UISwitch.Appearance.OnTintColor         = spacePurple;
            UINavigationBar.Appearance.BarTintColor = spacePurple;
            UINavigationBar.Appearance.TintColor    = UIColor.White;

            var controller = new UIViewController();

            controller.View.BackgroundColor = UIColor.LightGray;
            controller.Title = "My Controller";

            var cvc = new SideMenuSample();


            var navController = new UINavigationController(new LoginViewController())
            {
            };

            navController.NavigationBar.BarStyle = UIBarStyle.Black;

            Window.RootViewController = navController;

            // make the window visible
            Window.MakeKeyAndVisible();

            return(true);
        }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.NavigationController.NavigationBar.Hidden = true;
            this.submitBtn.TouchUpInside += (sender, e) =>
            {
                var cvc = new SideMenuSample();


                UINavigationController navC = new UINavigationController(new SideMenuSample());
                UIApplication.SharedApplication.KeyWindow.RootViewController = navC;
                UIApplication.SharedApplication.KeyWindow.MakeKeyAndVisible();
            };
        }