ビューコントローラでタブバーを使用しており、「viewDidLoad」メソッドで次のように宣言しています。
normalView =[[NormalViewController alloc] initWithSigne:[[normalAstro objectAtIndex:signIndex]objectForKey :@"name"] andDescription:[[normalAstro objectAtIndex:signIndex]objectForKey :@"description"]] ;
[controllers addObject:normalView];
chineseIndex=[self searchChineseIndex];
chineseView =[[ChineseViewController alloc] initWithSigne:[[chineseAstro objectAtIndex:chineseIndex]objectForKey :@"name"] andDescription:[[chineseAstro objectAtIndex:chineseIndex]objectForKey :@"description"]] ;
[controllers addObject:chineseView];
tabBar = [[UITabBarController alloc] init];
tabBar.viewControllers=controllers;
[self.view addSubview:tabBar.view ];
そして、tabBarに配置されたviewControllersは、それらを初期化するためにこれを記述します。
[self.tabBarItem setTitle:@"signe astral" ] ;
tabBarItemのタイトルが表示されないという問題があります。それで、私の質問は、これらすべての間違いはどこにあるのでしょうか。