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;
网友评论