New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation bar title when using TabBar #44
Comments
I have sove just the same problem after adding "needsTopLayoutGuide" = NO to User Defined Runtime Attributes. |
Neither of the previous options worked for me. I ended up fixing this setting the title of the parentViewController: [self.parentViewController setTitle:NSLocalizedString(@"MyTitle", nil)]; Like stated before, accessing the parent is quite hacky though 👎 |
👍 accessing the parent is unforgivable, really. RBStoryboardLink should be totally transparent. Part of the problem is that RBStoryboardLink should work reactively rather than statically. It should use KVO to observe and expose the |
I just had a similar problem with the @rob-brown any thoughts on the matter? |
+1 |
@tomekc @stanislaw Actually I think you guys should use the property 'rbsl_storyboardLink', which is defined in the UIViewController+RBStoryboardLink, to access surrogate view controller and change the property you wanted, the code should look like:
Because when you change navigation item or others, actually you are changing the navigation item of your container navigation controller's navigation item and now the surrogate view controller (a RBStoryboardLink class) is contained in the navigation controller not your view controller, so you should access property like the code above. |
Having the same problem here. It would be nice to have a fix for this. |
I have TabBar application and one of the tabs is starting with NavigationController.
The problem is that I am unable to set navigation bar title, in either way:
self.navigationItem.title = "nav item title"
Title remains unchanged. It will work if I move navigation controller to separate storyboard, but then navbar is rendering incorrectly (not extending under status bar).
Any clues?
Thanks!
The text was updated successfully, but these errors were encountered: