gpt4 book ai didi

ios - 如何在 UITabBars 之间执行 segue?

转载 作者:行者123 更新时间:2023-11-29 12:08:17 26 4
gpt4 key购买 nike

我的应用程序有 2 个 UITabBars - 在第一个 mapview 上,在第二个 tableview 上。所以我想要的是通过点击 tableview 单元格并转到 map (带有一些数据)来执行 segue。我的问题是在选定的索引标签栏之间实现自动切换(或至少手动切换)。 enter image description here

现在如果点击单元格,我将有两个带有两个 map 的标签栏

最佳答案

我认为您正在通过执行转场来重新实例化整个 View 。看看这个其他问题:How can I segue to the second tab of a tab bar controller from the first tab?您可能可以通过执行标准选择器来解决此问题,该选择器更改 tabBar 的 selectedViewController 属性(可能传递更多信息),而不是 segue。

关于ios - 如何在 UITabBars 之间执行 segue?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34285638/

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