jasnig / ZJScrollPageView

网易新闻, 腾讯视频, 头条 等首页的滑块视图联动的效果OC版的简单方便的集成, 滑块 segmentVIew, scrollViewController(Providing an easy way to reach the effect that "the segment scrolls with the content")
MIT License
1.11k stars 197 forks source link

在有tabBar的情况下,内部子VC的View布局会贯穿底部tabBar #47

Open liwenDeng opened 7 years ago

liwenDeng commented 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

HeminWon commented 7 years ago

是的,是会存在这个问题