私はこれを試しても動作しません。タブバーの項目が見えません。どうすればこの問題を解決できますか?ご協力いただきありがとうございます。タブ(ZiyaretFormTab5にZiyaretFormTab1)に入り、あなたのビューコントローラのそれぞれにおいてプログラムでタイトルをタブバーアイテムに設定するにはどうすればよいですか?
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
myTabBarController = [[UITabBarController alloc] init];
tab1 = [[ZiyaretFormTab1 alloc] initWithNibName:@"ZiyaretFormTab1" bundle:nil];
tab2 = [[ZiyaretFormTab2 alloc] initWithNibName:@"ZiyaretFormTab2" bundle:nil];
tab3 = [[ZiyaretFormTab3 alloc] initWithNibName:@"ZiyaretFormTab3" bundle:nil];
tab4 = [[ZiyaretFormTab4 alloc] initWithNibName:@"ZiyaretFormTab4" bundle:nil];
tab5 = [[ZiyaretFormTab5 alloc] initWithNibName:@"ZiyaretFormTab5" bundle:nil];
myTabBarController.viewControllers = [NSArray arrayWithObjects: tab1, tab2,tab3,tab4,tab5,nil];
UITabBarItem *tabItem = [[[myTabBarController tabBar] items] objectAtIndex:1];
[tabItem setTitle:@"theTitle"];
[self.view addSubview:myTabBarController.view];
myTabBarController.selectedIndex=0;
}
1時間前から質問が重複している可能性があります[プログラムでタブバーコントローラにタイトルを設定できません](http://stackoverflow.com/questions/9044331/i-can-not-set-title-to-私のプログラム可能なタブバーコントローラ)。質問を再投稿しないでください。 –