ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.91k stars 1.45k forks source link

[bug]:使用EasyNavigationController创建控制器的时候,点击tabbar按钮会导致按钮消失 #562

Open DogTwoChen opened 3 years ago

DogTwoChen commented 3 years ago

-(NSArray<UIViewController > )wtViewControllers { WTHomeViewController homeVC = [[WTHomeViewController alloc]init]; WTOrderViewController orderVC = [[WTOrderViewController alloc]init]; WTBenefitViewController benefitVC = [[WTBenefitViewController alloc]init]; WTCouponViewController couponVC = [[WTCouponViewController alloc]init];

UIViewController *homeNVC = [[EasyNavigationController alloc]initWithRootViewController:homeVC];
UIViewController *orderNVC = [[EasyNavigationController alloc]initWithRootViewController:orderVC];
UIViewController *benefitNVC = [[EasyNavigationController alloc]initWithRootViewController:benefitVC];
UIViewController *couponNVC = [[EasyNavigationController alloc]initWithRootViewController:couponVC];

NSArray *viewControllers = @[homeNVC, orderNVC, benefitNVC, couponNVC];
return viewControllers;

}

截屏2021-05-27 下午6 16 41 截屏2021-05-27 下午6 17 07