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.92k stars 1.46k forks source link

tabbar 顺序错乱 #27

Closed linlinyao1 closed 8 years ago

linlinyao1 commented 8 years ago

测试设备为 iPhone6s iOS9.2

4个按钮和中间+按钮,设置时候的顺序和显示的顺序不同

ChenYilong commented 8 years ago

v1.0.7版本已经修复了该 bug,请升级重试下。

虽然修复了,但也请遵循如下规则: 请勿使用 self.title = @"同城"; 这种方式,请使用 self.navigationItem.title = @"同城";

self.title = @"同城"; by this way, it may cause bug like this:

enter image description here

规则如下:


    self.navigationItem.title = @"同城";    //✅sets navigation bar title.The right way to set the title of the navigation
    self.tabBarItem.title = @"同城23333";   //❌sets tab bar title. Even the `tabBarItem.title` changed, this will be ignored in  tabbar.
    self.title = @"同城1";                  //❌sets both of these. Do not do this‼️‼️ This may cause something strange like this : http://i68.tinypic.com/282l3x4.jpg