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.9k stars 1.45k forks source link

该如何默认选中plusbutton? #606

Open ccchina opened 1 year ago

ccchina commented 1 year ago

我设置了plusbtn的下标是2. 设置tabbarController的selectedindex为2。 初始化会正确显示在plusBtn对应的页面。 但是tabbarController中的item选中的状态是不对的。 设置了selectedindex为2,第三个item也选中了。

DongfengWang123 commented 1 month ago

我设置了plusbtn的下标是2.设置tabbarController的selectedindex为2。初始化会正确显示在plusBtn对应的页面。但是tabbarController中的item选中的状态是不不的。设置了selectedindex为2,第三个item也选中了。 这个问题解决了吗?