Skip to content

Instantly share code, notes, and snippets.

@YutaWatanabe
Created December 31, 2013 03:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YutaWatanabe/8191924 to your computer and use it in GitHub Desktop.
Save YutaWatanabe/8191924 to your computer and use it in GitHub Desktop.
特定の Screen でのみ Navigation Bar を非表示にする方法。ViewWillAppear で Hidden : true にし、ViewWillDisappear で Hidden : false にする。Xamarin チュートリアルより http://docs.xamarin.com/guides/ios/getting_started/hello,_mvc/
public override void ViewWillAppear (bool animated) {
base.ViewWillAppear (animated);
this.NavigationController.SetNavigationBarHidden (true, animated);
}
public override void ViewWillDisappear (bool animated) {
base.ViewWillDisappear (animated);
this.NavigationController.SetNavigationBarHidden (false, animated);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment