默认只有两个选项可以点击
------解决方案--------------------
如果是IB设置的话,可以设置其属性viewControls(名字忘了)
Xcode的或tabBarController.viewControllers=controls;
controls为视图控制器数组
------解决方案--------------------
- C/C++ code
NSMutableArray* tabControllers = [[NSMutableArray alloc] initWithObjects: [viewControllers1 objectAtIndex:0], [viewControllers2 objectAtIndex:1], [viewControllers3 objectAtIndex:2], [viewControllers4 objectAtIndex:3],nil]; [tabBarController setViewControllers:tabControllers]; [tabControllers release];