As described above, I create the UITabBarController with the storyboard and name the first item "Storyboard".
Then I change the name to "Code" with the following code:
theTabBarController.tabBar.items[0].title = "Code"
// By the way, this doesn’t work at all ... ?!
theTabBarController.tabs[0].title = "Code"
The new tab bar is displayed correctly:
But as soon as I reduce the window on the iPad and the compact size is triggered, the "old" tab bar appears at the bottom of the window:
Instead of "Code", the first item still shows "Storyboard". I could imagine that the problem has something to do with the fact that I create the UITabBarController using the storyboard. But that should still work, right?
(The tab bar is displayed correctly on the iPhone, by the way. So for me the problem is limited to the iPad only.)