gpt4 book ai didi

ios - 我需要在 Nib 之间使用自定义转场

转载 作者:行者123 更新时间:2023-11-30 13:05:53 26 4
gpt4 key购买 nike

在我的项目中,我需要使用已经创建的自定义segue,我只需要知道如何在 nib/xib 文件之间实现它。如果需要的话,我会使用按钮在 nib/xib 之间移动。

最佳答案

Segues 只能在 Storyboard 中使用。如果您的 UI 位于 nib 中,则需要以编程方式实例化它并以如下方式呈现:

let controller = MyViewController(nibName: "MyViewController", bundle: nil)
self.navigationController.pushViewController(self, animated: true)

关于ios - 我需要在 Nib 之间使用自定义转场,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39379888/

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