If a viewController is in a navigationStack(probably top of stack),
does it automatically possess self.navigationItem?
I keep seeing self.navigationItem and self.navigationController without much context in questions and tutorials, and wonder where that variables are set.
- edit
Wow thanks for the fast answers.
Where would I have spotted the info(about self.navigationItem) in the official doc?
Yes if its in a stack it does have a
self.navigationItem, if its not in a navigation stackself.navigationItemwould equal to nilThis property is defined in an objective c class extension
it defines the properties of
UIViewControllerrelated to thenavigation controller