SlackTextViewController
SlackTextViewController copied to clipboard
Cannot set title in navigation bar.
- [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
- [x] I've read and agree to the Code of Conduct.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Description
Cannot set title in navigation bar.
Reproducible in:
- [x] This is reproducible in the sample project. SlackTextViewController version: latest iOS version(s): 10.3.3 Device(s): iPhone 7
Steps to reproduce:
- in the viewDidLoad set
self.navigationItem.title = @"Title"; - Run
- You'll see no title.
Expected result:
Have the title as "Title"
Actual result:
It was blank.
Attachments:
None
Try setting the title in viewWillAppear. It seems to work for me.
Did you really test on the sample project? I cannot reproduce with your environment specs.
Anyway, the best practice is to do self.title = @"title" since navigationItem may be nil at the point of assignment.