Right now, I am setting the title in the viewDidLoad of the root view of the tab, which only changes when I click on the tab. I want this to be set before I select the tab. I tried something like:
[[self.parentViewController.tabBarController.tabBar.items objectAtIndex:2] title] = @"string";
in the first view that loads in another tab, but there is clearly something wrong since I get a left operand error.
Can somebody show me the correct way to achieve what I am trying to do?
Thank you!!