How can I set title of NavifationItem from IB (separate xib of my own ViewController)
Can anybody help me in such situation: I have Navigation interface in my application and push TestController to nav stack
Also I have separate xib file: Test.xib where File owner's is TestController. Test.xib has View (property TopBar set as NavigationBar and it shows) with only TextView.
All works fine: Controller is pushed to stack, Back button is shown but there is no Title of TestController and I can't drop NavigationItem on the View to display own title.
How can I set in Test.xib Title on the NavigationBar ???
PS: Programmatically works (in TestController.m -> ViewDidLoad: self.title=@"Test controller";) but I need exactly in xib from IB (it's requirement of my employer)开发者_开发百科
Regards, Alex
Add a UINavigationItem
and set the properties there.
精彩评论