Closed ldy694 closed 2 years ago
自定义一个window, 这个具体点, 做什么用的?
@ChenYilong 放自定义弹窗view的,比如有新版本提醒更新,一个自定义的全局活动弹窗提醒等等,自定义的window与工程默认的window是各自独立存在的。
@ChenYilong 给个邮箱,我把demo发给你看看
CYLTabbarDemo.zip @ChenYilong 这个是demo
CYLTabbarDemo.zip @ChenYilong 这个是demo
收到, 我看看
@ChenYilong 幸苦了,谢谢🙏
@ChenYilong 你好,有解决办法吗?
@ChenYilong 我好像找到原因了,一旦设置了
,下次再通过代码跳转前得再设置了,把shouldSelect设为true才行
Base Info for this issue
1. How to reproduce the problem.
1、自定义一个window,之后不管在什么地方调用cyl_popSelectTabBarChildViewController或selectedIndex会出现文字变色,图片没变化。 2、没有创建自定义window时是正常的。
例如:我现在tabBarController.selectedIndex = 0,自定义一个弹窗view,把它加在一个自定义的window上,一旦这个弹窗生成后,再通过代码调用cyl_popSelectTabBarChildViewController(at: 2, animated: true),此时tabBarController.selectedIndex = 2,页面也切到了。但是,只有文字颜色变了,图片没变化,但是用手去切是正常的
2. Please help me in this way.
在自定义了window时,也可以正常的通过代码改selectedIndex
3. Here is a Demo.
4. Here is my Debug log