A blog about iPhones, iPads, Swift, being a working coder, gadgets and tech. The official blog of Generally Helpful Software.
Sunday, May 08, 2016
Note to self, UINavigationController's setToolbarHidden does something different than setNavigationBarHidden
I spent a very long time thinking that I could somehow not put a UINavigationController in a container view (despite having done so before) because I was autocompleting to setToolbarHidden instead of setNavigationBarHidden. A very, very long time.
guard let myNavController = self.navigationController else
{
return
}
myNavController.setToolbarHidden(true, animated: true)
// is different than
myNavController.setNavigationBarHidden(true, animated: true)