1.创建方式一
MainViewController *mvc = [[MainViewController alloc] init];
//设置标签栏上面视图控制器的标题和背景图片
mvc.title=@"主界面";
mvc.tabBarItem.image = [UIImage imageNamed:@"tab_0.png"];
UINavigationController *nc1 = [[UINavigationController alloc]initWithRootViewController:mvc];
DynamicViewController *dvc = [[DynamicViewController alloc] init];