I am reading about UINavigationController, and it makes sense to have a navigationItem in the NavigationController,
but when I create a UIViewController, there is also a property called navigationItem from type UINavigationItem
so now I have :
navigationItem in the
UIViewControllernavigationItem in the
UINavigationController
do they have different purposes ?
It sounds like the navigationItem in the UINavigationController is not working because I did this code in a UIViewController:
self.navigationController!.navigationItem.title = "test2"
and the title didn't change, while I did this code:
self.navigationItem.title = "test"
and the title changed

