0

I wish to add a childViewController that will be presented full screen. Is that possible without hiding the navigation bar ?

Thanks

shannoga
  • 19,649
  • 20
  • 104
  • 169

1 Answers1

0

You can add to your own view the navigation bar, if it is embedded with the following code:

Swift way: To hide it:

self.navigationController?.setNavigationBarHidden(true, animated: true)

To show it:

self.navigationController?.setNavigationBarHidden(false, animated: true)

Objective-C way: Hide:

[[self navigationController] setNavigationBarHidden:YES animated:YES];

Show:

[[self navigationController] setNavigationBarHidden:NO animated:YES];
AlexWoe89
  • 844
  • 1
  • 11
  • 23