recommendViewController *recommend=[recommendViewController new];

    UINavigationController *navyi=[[UINavigationController alloc] initWithRootViewController:  recommend];

    UITabBarItem *Itemyi=[[UITabBarItem alloc] initWithTitle:@"推荐" image:nil tag:1001];

    navyi.tabBarItem=Itemyi;

    navyi.tabBarItem.badgeValue=@"99+";


    citywideViewController *er=[citywideViewController new];

    UINavigationController *naver=[[UINavigationController alloc] initWithRootViewController:er];

    UITabBarItem *Itemer=[[UITabBarItem alloc] initWithTitle:@"同城" image:nil tag:1002];

    naver.tabBarItem=Itemer;


    messageViewController *san=[messageViewController new];

    UINavigationController *navsan=[[UINavigationController alloc] initWithRootViewController:san];

    UITabBarItem *Itemsan=[[UITabBarItem alloc] initWithTitle:@"消息" image:nil tag:1003];

    navsan.tabBarItem=Itemsan;


    myViewController *MY=[myViewController new];

    UINavigationController *Mynav=[[UINavigationController alloc] initWithRootViewController:MY];

    UITabBarItem *myItem=[[UITabBarItem alloc] initWithTitle:@"我的" image:[UIImage imageNamed:@"menu_mine_normal.png"] tag:1003];

    myItem.selectedImage = [UIImage imageNamed:@"menu_mine_foc.png"];

    Mynav.tabBarItem=myItem;

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容