Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 iOS 故事板新手。我在将特定选项卡与特定 ViewController 链接时遇到问题。我有 3 个选项卡,当我点击第二个时,它转到第三个视图控制器,当我点击第三个时,它转到第二个视图控制器。有没有办法可以确保哪个选项卡显示哪个视图控制器?
我认为您对选项卡的索引并将它们映射到视图控制器有问题。选项卡从索引 0 开始。
所以标签号 3 位于索引 2 处。