📜  如何在标签栏项目swift代码示例上显示通知图标

📅  最后修改于: 2022-03-11 15:01:02.404000             🧑  作者: Mango

代码示例1
if let tabItems = tabBarController?.tabBar.items {
    // In this case we want to modify the badge number of the third tab:
    let tabItem = tabItems[2]
    tabItem.badgeValue = "1"
}