How to switch between UITabBarController programmatically
问题 I have an application with UITabBarController, where the first tab contains a ViewController of an HomePage. What I have to do, is to switch between the tabs (this is pretty simple: [[self tabBarController] setSelectedIndex:index]), AND to navigate through outlets of the selectedTab from the "HomePage". Just to explain myself: TabElement1--->TabElementX---->UISegmentedController:segmentY The problem is that the UISegmentedController is nil because it is not initialized yet (at least the first