gpt4 book ai didi

swift - 如何在 swift 中以编程方式更改导航栏标题?

转载 作者:搜寻专家 更新时间:2023-11-01 05:46:35 26 4
gpt4 key购买 nike

我没有使用导航 Controller ,而是使用了导航栏。但我找不到任何以编程方式更改标题的解决方案。请 swift 提供解决方案。

最佳答案

override func viewDidLoad() {
super.viewDidLoad()
self.title = "Your title over here"
}

关于swift - 如何在 swift 中以编程方式更改导航栏标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41690711/

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