本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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)));
}
}
示例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);
}
}
示例8: ViewWillAppear
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
navController = NavigationController;
if (navController != null) {
navController.SetNavigationBarHidden (true, animated);
}
}
示例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;
}