Assigning a new view controller to this property changes the currently displayed view and also selects an appropriate tab in the tab bar. Changing the view controller also updates the selectedIndex property accordingly.
Maybe just try without the selectedIndex
? Also, is there a fourth tab item in there? If there's only 3, then selectedIndex = 2 would be the more button and:
Attempting to set this value to an
index of a view controller that is not
visible in the tab bar, but is instead
managed by the More navigation
controller, has no effect.
Some thoughts, not sure if this is the answer.