纯代码:
1.UItableBarController --UIViewController
UITabBArController管理视图控制器
和UINavigationController 的push 和 pop 不同
UITabbarController 通过数组属性viewController是来管理viewcontroller
所有, 创建UITabBarController 并让它显示视图控制器 要将 视图控制器教给viewController管理
FirstViewController
*firstController = [[[
FirstViewController
alloc
]
init
]
autorelease
];
UINavigationController *navigation = [[ UINavigationController alloc ] initWithRootViewController :firstController];
SecondViewController *secondController = [[[ SecondViewController alloc ] init ] autorelease ];
UINavigationController *navigation2 = [[ UINavigationController alloc ] initWithRootViewController :secondController];
ThreedViewController *threeController = [[[ ThreedViewController alloc ] init ] autorelease ];
UINavigationController *navigation3 = [[ UINavigationController alloc ] initWithRootViewController :threeController];
ForthViewController *forthController = [[[ ForthViewController alloc ] init ] autorelease ];
UINavigationController *navigation4 = [[ UINavigationController alloc ]
UINavigationController *navigation = [[ UINavigationController alloc ] initWithRootViewController :firstController];
SecondViewController *secondController = [[[ SecondViewController alloc ] init ] autorelease ];
UINavigationController *navigation2 = [[ UINavigationController alloc ] initWithRootViewController :secondController];
ThreedViewController *threeController = [[[ ThreedViewController alloc ] init ] autorelease ];
UINavigationController *navigation3 = [[ UINavigationController alloc ] initWithRootViewController :threeController];
ForthViewController *forthController = [[[ ForthViewController alloc ] init ] autorelease ];
UINavigationController *navigation4 = [[ UINavigationController alloc ]