1) If the controller is created in XIB, you can reset the UINavigationItem to it and configure this element - it will work. For example, when you define a UINavigationControler in the XIB, you can put some controller inside as the root view controller. So you can have a UINavigationItem for this controller in XIB.
2) If the controller loads this view from the XIB (it was created by alloc and then init or initWithNibName:bundle: , it is presented in XIB only as a File Owner , which does not support UINavigationItem in it. In this case, you should configure the navigation element in the code (usually I do this in viewDidLoad ). No need to create it, it already exists in the navigtionItem property of your controller
self.navigationItem.title = @"Price List";
It may be possible to make a way out for the navigation item, but I would not recommend this. Apple has declared such a release obsolete for a reason. I remember that I once discussed this with a colleague, but I forgot what it was (then it was obvious).
source share