gpt4 book ai didi

ios - 如何通过单击按钮移动到 iOS 中的另一个 View Controller ?

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

假设我在 Storyboard 界面中创建了两个 UIViewController - FirstViewControllerSecondViewController

现在我想通过点击 FirstViewController 中的按钮移动到 SecondViewController。我应该如何处理按钮?我已 ctrl 单击该按钮,并使用“Reveal viewcontroller Pushcontroller”将其连接到 SecondViewController。代码中还有什么要做的吗?

最佳答案

如果您想在 Storyboard中执行所有操作,则必须选择 FirstViewController 并单击菜单选项编辑器 -> 嵌入 -> 导航 Controller

enter image description here嵌入导航 Controller

enter image description here

将按钮与另一个 View 连接 enter image description here

关于ios - 如何通过单击按钮移动到 iOS 中的另一个 View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30140891/

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