gpt4 book ai didi

swift - 如何在 swift 中使用 UITabBar 导航 View Controller ?

转载 作者:行者123 更新时间:2023-11-30 12:50:02 24 4
gpt4 key购买 nike

我有一个 UITabBarController 和 4 个 UITabBarItem。我想以编程方式浏览它们。我很期待如何做到这一点..(Swift)

最佳答案

self.tabBarController?.selectedIndex = 0 //1, 2 or 3

关于swift - 如何在 swift 中使用 UITabBar 导航 View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41117004/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com