如何更改TabBarController行为?

| 我是iPhone新手,对于我的第一个应用程序,我需要重写TabBarController的正常行为。 我有3个选项卡,在第一个选项卡上,我需要在运行时根据一些逻辑加载不同的视图。这可能吗? 我看了一下TabBarController委托,但据我所知,它不允许行为覆盖,只是“用户输入通知”。 任何的想法? 谢谢。     
已邀请:
要在特定选项卡中更改控制器,请执行以下操作:
NSMutableArray* controllers = [NSMutableArray arrayWithArray:tabBarController.viewControllers];

int newIndex = 0;
[controllers replaceObjectAtIndex:newIndex withObject:newController];

tabBarController.viewControllers = controllers;
    

要回复问题请先登录注册