TabBarControllerに4つのTabがある。私はタブからViewControllerを押すと、タブは自動的に隠され、Viewには何も表示されません。しかし、ViewControllerにはデータ付きのテーブルビューが含まれています。私もtableviewデリゲートを実装しています。私はtableviewデリゲートログを取得していません。 appdelegate didFinishLaunchingWithOptions()でiOS 9.0 Tabbarが自動的に非表示になり、viewcontrollerがプッシュで消える
self.window = [[UIWindow ALLOC] initWithFrame:[UIScreen mainScreen]境界]。ここ
負荷にTabBar:タブ4から
myAppDelegate.myTabBarController.selectedIndex = 0;
myAppDelegate.myTabBarController.tabBar.translucent = NO;
myAppDelegate.myTabBarController.tabBar.opaque = YES;
location_select *tab1 = [[location_select alloc] initWithNibName:@"location_select" bundle:nil];
tab1.tabBarItem.image = [UIImage imageNamed:@"Restaurants.png"];
location_select *tab2 = [[location_select alloc] initWithNibName:@"location_select" bundle:nil];
tab2.title = @"Cart";
tab2.tabBarItem.image = [UIImage imageNamed:@"Cart.png"];
Deal_ViewController *tab3 = [[Deal_ViewController alloc] initWithNibName:@"Deal_ViewController" bundle:nil];
tab3.title = @"Deals";
tab3.tabBarItem.image = [UIImage imageNamed:@"Deals.png"];
MoreViewController *tab4 = [[MoreViewController alloc] initWithNibName:@"MoreViewController" bundle:nil];
tab4.title = @"More";
tab4.tabBarItem.image = [UIImage imageNamed:@"More.png"];
myAppDelegate.myTabBarController.viewControllers = [NSArray arrayWithObjects:tab1,tab2,tab3,tab4,nil];
[myAppDelegate.rootNav pushViewController:myAppDelegate.myTabBarController animated:YES];
、私はProfile_ViewController押す:
Profile_ViewController *vc = [[Profile_ViewController alloc] initWithNibName:@"Profile_ViewController" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:vc animated:YES];
を、すでに私はそこに適用される:
myAppDelegate.myTabBarController.hidesBottomBarWhenPushed=NO;
and
[self.tabBarController setHidesBottomBarWhenPushed:NO];
Profile_ViewControllerのviewWillAppearで。いいえ、うまくいきません。私は空白の白い画面が表示されます。
に役立つかもしれないあなたのクエリに関連するソリューションとは? – vaibhav
@jamshedあなたのアプリの構造の詳細を共有できますか?あなたのアプリでUINavigationControllerを使用していますか? –
あなたはストーリーボードを共有できますか? –