Commit 3c331219 authored by Steven杜宇's avatar Steven杜宇

// 朋友小红点处理

parent 225eaa98
...@@ -103,8 +103,8 @@ class YHTabBarViewController: ESTabBarController { ...@@ -103,8 +103,8 @@ class YHTabBarViewController: ESTabBarController {
} }
func showFriendTabRedBadgeNumber(_ num: Int) { func showFriendTabRedBadgeNumber(_ num: Int) {
if let vcs = self.viewControllers, vcs.count > 2 { if let vcs = self.viewControllers, vcs.count > 3 {
let friendVC = vcs[2] let friendVC = vcs[3]
if let tabBarItem = friendVC.tabBarItem as? ESTabBarItem { if let tabBarItem = friendVC.tabBarItem as? ESTabBarItem {
// badgeValue 空字符串会显示小红点 nil则隐藏 // badgeValue 空字符串会显示小红点 nil则隐藏
var badge: String? = nil var badge: String? = nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment