当前位置: 首页>>代码示例>>C#>>正文


C# UINavigationController.SetNavigationBarHidden方法代码示例

本文整理汇总了C#中UINavigationController.SetNavigationBarHidden方法的典型用法代码示例。如果您正苦于以下问题:C# UINavigationController.SetNavigationBarHidden方法的具体用法?C# UINavigationController.SetNavigationBarHidden怎么用?C# UINavigationController.SetNavigationBarHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UINavigationController的用法示例。


在下文中一共展示了UINavigationController.SetNavigationBarHidden方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FinishedLaunching

        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _facebook = new FacebookSdk.Facebook(kAppId);

            mainView = new MainView(_facebook);
            controller = new UINavigationController(mainView);
            controller.SetNavigationBarHidden(true, false);
            controller.NavigationBar.TintColor = mainView.FacebookBlue;

            window.AddSubview(controller.View);
            window.MakeKeyAndVisible();

            return true;
        }
开发者ID:follesoe,项目名称:FacebookBigProfile,代码行数:15,代码来源:Main.cs

示例2: MainViewController

        public MainViewController()
        {
            outerButton = new UIButton ();
            outerButton.SetTitle ("Outer MainVC Button", UIControlState.Normal);
            outerButton.BackgroundColor = UIColor.Blue;
            outerButton.SetTitleColor (UIColor.White, UIControlState.Normal);
            outerButton.TouchUpInside += (object sender, EventArgs e) =>
            {
                PresentViewController(new MyModalViewController(), true, null);
            };

            navController = new UINavigationController ();
            navController.View.BackgroundColor = UIColor.Brown;
            navController.SetNavigationBarHidden (true, false);
        }
开发者ID:raghurana,项目名称:XamarinIosAutoLayoutBug,代码行数:15,代码来源:MainViewController.cs

示例3: FinishedLaunching

        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

            UINavigationController navController = new UINavigationController();
            navController.SetNavigationBarHidden(true, false);
            navController.SetViewControllers(new UIViewController[] { new SnakeViewController() }, true);

            // Show
            Window.RootViewController = navController;
            Window.MakeKeyAndVisible();

            return true;
        }
开发者ID:j2brian703,项目名称:Snake,代码行数:16,代码来源:AppDelegate.cs

示例4: FinishedLaunching

		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
//			if (1 == 1) {
//				UIAlertView alert = new UIAlertView ();
//				alert.Title = "升级提醒";
//				alert.Message="发现有新版本可以更新,请尽快更新,否则影响正常使用";
//				alert.AddButton ("进行升级");
//				alert.AddButton ("取消");
//				alert.Dismissed += Alert_Dismissed;
//				alert.Show ();
//			}

			_window = new UIWindow (UIScreen.MainScreen.Bounds);
			UINavigationController _nva = new UINavigationController ();
			_nva.SetNavigationBarHidden (true, false);

			//自动登录
			Sys_User lastLoginUser = new UserProcess ().GetLastLoginUser ();
			if (lastLoginUser != null) {
				//系统静态存储
				SystemObject.User = lastLoginUser;
				//更新登录状态到数据库?

				//跳转到主页面

				_nva.PushViewController (new MainController (), true);
			} else {
				_nva.PushViewController (new ViewController (), true);
			}



			_window.RootViewController = _nva;
			_window.MakeKeyAndVisible ();
			return true;
		}
开发者ID:raisonzzy,项目名称:HaApp,代码行数:36,代码来源:AppDelegate.cs

示例5: FinishedLaunching

        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            MapServices.ProvideAPIKey ("AIzaSyA8WOvgGyHaw3rgkeYuUIqkIxhmW9Hrdjc");

            locationManager = new CLLocationManager ();
            locationManager.Delegate = new locationManagerDelegate ();
            locationManager.DesiredAccuracy = CLLocation.AccuracyBest;

            locationManager.RequestAlwaysAuthorization ();

            if (locationManager.RespondsToSelector (new Selector ("requestWhenInUseAuthorization")))
            {
                locationManager.RequestWhenInUseAuthorization ();
            }
            if (CLLocationManager.LocationServicesEnabled) {
                locationManager.StartUpdatingLocation ();
            }

            ProgressHUD.Shared.HudForegroundColor = UIColor.Gray;
            ProgressHUD.Shared.Ring.Color = UIColor.FromRGB(44/255f,146/255f,208/255f);
            ProgressHUD.Shared.HudForegroundColor = UIColor.FromRGB(44/255f,146/255f,208/255f);

            UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, true);

            this.Window = new UIWindow (UIScreen.MainScreen.Bounds);
            UINavigationController navigation = new UINavigationController(new StartingScreen());
            navigation.NavigationBar.TintColor = UIColor.White;
            navigation.NavigationBar.BarTintColor = UIColor.FromRGB(44/255f,146/255f,208/255f);
            navigation.NavigationBar.BarStyle = UIBarStyle.Black;
            navigation.SetNavigationBarHidden (true,true);

            this.Window.RootViewController = navigation;
            this.Window.MakeKeyAndVisible ();

            return true;
        }
开发者ID:ppkdo,项目名称:sipper,代码行数:36,代码来源:AppDelegate.cs

示例6: ShowSecretsView

        private void ShowSecretsView()
        {
            var secret = currentSecret;
            RootElement root = CreateRootElement ();
            rootDVC = new StyledDialogViewController (root, null, backgroundColor)
            {
                Autorotate = true,
                HidesBottomBarWhenPushed = true
            };
            rootDVC.ViewAppearing += (sender, e) => {
                server.Abort ();
                currentSecret = null;
                NSError err;
                Analytics.SharedTracker.TrackPageView ("/secrets", out err);
                ReOrderSecrets ();
            };

            var aboutButton = UIHelper.CreateInfoButton(40f, 60f);
            aboutButton.TouchDown += (sender, e) => {
                ShowAboutView();
            };
            rootDVC.View.AddSubview(aboutButton);

            navigation = new UINavigationController ();
            Flurry.LogAllPageViews(navigation);
            navigation.SetNavigationBarHidden (true, false);
            navigation.PushViewController (rootDVC, false);

            window.RootViewController = navigation;

            if (ResharedItem != null)
            {
                var sbounds = UIScreen.MainScreen.Bounds;
                var btnCancel = UIButton.FromType (UIButtonType.RoundedRect);
                btnCancel.Tag = CANCEL_BUTTON_TAG;
                btnCancel.Frame = new RectangleF (
                    10,
                    sbounds.Height - 60f,
                    100,
                    30
                    );
                btnCancel.SetTitle ("Cancel", UIControlState.Normal);
                btnCancel.SetTitleColor (UIColor.Black, UIControlState.Normal);
                btnCancel.TouchDown += delegate {
                    ResharedItem = null;
                    if (rootDVC.View.ViewWithTag(CANCEL_BUTTON_TAG) != null) {
                        rootDVC.View.ViewWithTag(CANCEL_BUTTON_TAG).RemoveFromSuperview();
                    }
                    UpdateSecretsViewLabel(WELCOME_LABEL_TEXT);
                    DisplaySecretDetail(secret);
                };
                rootDVC.View.AddSubview (btnCancel);

                UpdateSecretsViewLabel(String.Format(SHARE_LABEL_TEXT, UrlHelper.GetFileName(ResharedItem.ItemPath)));
            }
        }
开发者ID:bshehera,项目名称:cross-copy,代码行数:56,代码来源:AppDelegate.cs

示例7: ViewWillAppear

        public override void ViewWillAppear (bool animated)
        {
            base.ViewWillAppear (animated);

            SignIn.SharedInstance.Delegate = this;
            SignIn.SharedInstance.UIDelegate = this;

            navController = NavigationController;
            if (navController != null) {
                navController.SetNavigationBarHidden (true, animated);
            }
        }
开发者ID:VDBBjorn,项目名称:toggl_mobile,代码行数:12,代码来源:WelcomeViewController.cs

示例8: ViewWillAppear

        public override void ViewWillAppear (bool animated)
        {
            base.ViewWillAppear (animated);

            navController = NavigationController;
            if (navController != null) {
                navController.SetNavigationBarHidden (true, animated);
            }
        }
开发者ID:peeedge,项目名称:mobile,代码行数:9,代码来源:WelcomeViewController.cs

示例9: ViewWillAppear

        public override void ViewWillAppear (bool animated)
        {
            base.ViewWillAppear (animated);

            navController = NavigationController;
            if (navController != null) {
                navController.SetNavigationBarHidden (true, animated);
            }

            Google.Plus.SignIn.SharedInstance.Finished += OnGPlusFinished;
        }
开发者ID:readiescards,项目名称:mobile,代码行数:11,代码来源:WelcomeViewController.cs


注:本文中的UINavigationController.SetNavigationBarHidden方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。