Open liwenDeng opened 7 years ago
测试如下:
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UITabBarController *tab = [[UITabBarController alloc]init]; ZJVc1Controller *VC1 = [[ZJVc1Controller alloc]init]; ZJVc2Controller *VC2 = [[ZJVc2Controller alloc]init]; ZJVc3Controller *VC3 = [[ZJVc3Controller alloc]init]; ZJVc4Controller *VC4 = [[ZJVc4Controller alloc]init]; UINavigationController *nav1 = [[UINavigationController alloc]initWithRootViewController:VC1]; UINavigationController *nav2 = [[UINavigationController alloc]initWithRootViewController:VC2]; UINavigationController *nav3 = [[UINavigationController alloc]initWithRootViewController:VC3]; UINavigationController *nav4 = [[UINavigationController alloc]initWithRootViewController:VC4]; [tab addChildViewController:nav1]; [tab addChildViewController:nav2]; [tab addChildViewController:nav3]; [tab addChildViewController:nav4]; self.window.rootViewController = tab; [self.window makeKeyWindow];
通过视图层可以看到,内部子VC的View布局会贯穿底部tabBar
是的,是会存在这个问题
测试如下:
通过视图层可以看到,内部子VC的View布局会贯穿底部tabBar