public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.View.BackgroundColor = UIColor.White;

            if (this.NavigationController != null &&
                this.NavigationController is APNavigationController)
            {
                NavController = (APNavigationController)this.NavigationController;
                NavController.ActiveBarButtonTitle     = "Hide";
                NavController.ActiveNavigationBarTitle = "Tool bar visible";

                this.NavigationItem.RightBarButtonItem = new UIBarButtonItem("Show", UIBarButtonItemStyle.Plain, DidSelectShow);
            }
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var navController = new APNavigationController(new DemoViewController()
            {
                Title = "Sample",
            });


            // If you have defined a root view controller, set it here:
            Window.RootViewController = navController;

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

            return(true);
        }