本帖最后由 z8323664 于 2014-11-21 18:24:27 编辑

解决方案 »

  1.   

    下面tartar是空白的,但是点击空白的地方还能切换视图
      

  2.   

    需要给各个控制器指定它们的tabBarItem,这样才会显示
    UIViewController *pHomePageViewController = [[HomePageViewController alloc] initWithNibName:@"HomePageViewController" bundle:nil];
    /////// 设置uitabbaritem
    UITabBarItem* itm=[[UITabBarItem alloc]initWithTitle:@"first" image:[UIImage imageNamed:@"XXXX"] tag:1000]; 
    pHomePageViewController.tabBarItem= itm;