UITabBarControllerを使用するアプリがあり、タブバーコントロールの後ろから上にスライドする必要がある別のビューがありますが、タブバーのコンテンツの前にあります。それが明確でない場合は、タブバーボタンを除くすべての前に表示されるタブ付きアプリで広告が上にスライドすることを想像してみてください。
これまでのところ、このようなコードがありますが、これを行うためのより良い方法があれば、変更したいと思います...
tabBarController.viewControllers = [NSArray arrayWithObjects:locationNavController, emergencyNavController, finderNavController, newsNavController, nil];
aboutView = [[AboutView alloc] initWithFrame:CGRectMake(0, window.frame.size.height - tabBarController.tabBar.frame.size.height - 37 ,
320, window.frame.size.height - tabBarController.tabBar.frame.size.height)];
[window addSubview:tabBarController.view]; // adds the tab bar's view property to the window
[window addSubview:aboutView]; // this is the view that slides in
[window makeKeyAndVisible];
現在、aboutViewはUIViewのサブクラスであり、下部の開始位置にありますが、tabBarControllerを非表示にします。これを変更してタブを上に表示し、aboutViewを他のコンテンツの前に配置するにはどうすればよいですか?