I have an app with tab bar controller (with 4 views controller) and it contains a navigation controller. All of this was create programmatically.
My question:
Is there a way how to set one navigation bar title for all view controllers ? For example: When i switch tabs, title is the same. Ideal solution for me is set title in app delegate file. Thanks a lot
I have an app with tab bar controller (with 4 views controller) and it
Share
If you know that there will be exactly 4 views controller, just do
self.title = @"your title";If you want to change “your title” once and have them all changed, just create a static global or use plist. And put the code underviewDidAppearso that it refreshes every time. No need to do anything too complex 🙂