gpt4 book ai didi

swift - 如何在 swift 3.0 中从一个 tabBarController subview 移动到另一个 Tabbar Controller

转载 作者:搜寻专家 更新时间:2023-10-31 22:26:48 25 4
gpt4 key购买 nike

我有一个 tabBarController,它在选项卡 3 上有三个选项卡,我有一个 ViewController,它有更多的 child 。但是从 UITabBarController 索引 3 的子 ViewController 我想移动到 UITabBarController 索引 1 如何做到这一点请解释一下。

最佳答案

只需为 uitabbarviewcontroller 设置所需的 selectedindex。喜欢

tabBarController?.selectedIndex = 0

关于swift - 如何在 swift 3.0 中从一个 tabBarController subview 移动到另一个 Tabbar Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45539893/

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