1、iOS中最常见的一种布局,在底部设置Tab导航,分别控制不同的视图。
2、使用代码的方式创建UITabBarController。
1)在AppDelegate的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
方法中,新建UITabBarController,然后新建自己需要的UIViewController或者UITableViewController。将这些视图作为UINavigationController的根视图。使用方法
initWithRootViewController。