gpt4 book ai didi

ios - 使用 Nib 显示 ViewController

转载 作者:行者123 更新时间:2023-11-30 12:48:01 26 4
gpt4 key购买 nike

我有一个 xib 文件:

enter image description here

enter image description here

我将其连接到TopRankViewController

但是当我推送到TopRankViewController时,有一个空的ViewController,这里没有按钮。

我的代码:

if let tabBarController = self.tabBarController {
let topRankViewController = TopRankViewController(nibName: "TopRankViewController", bundle: nil)
topRankViewController.titleLocalize(title: type.title)
tabBarController.navigationController?.pushViewController(topRankViewController, animated: true)
}

我想显示那些在我的 xib 文件中定义的按钮。

最佳答案

我在这个 View 中添加了一个 View ,它对我有用。

enter image description here

关于ios - 使用 Nib 显示 ViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41373145/

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