📜  访问标签栏项目动作 swift 代码示例

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

代码示例1
class yourclass: UIViewController, UITabBarDelegate {
    func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) {
        //This method will be called when user changes tab.
    }
}