gpt4 book ai didi

ios - 推送 UIViewController 的自定义导航栏

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

如果我使用navigationController.pushViewController(controller:animated:completion:)将推送 View Controller 推送到navigationController上,同时保留“,如何在推送 View Controller 的导航栏上设置标题和按钮返回”按钮?

提前谢谢您!

最佳答案

对于任何想知道如何执行此操作的人,只需直接覆盖推送的 UIViewControllernavigationItem 属性即可。我的错误是我试图用 self.navigationController?.navigationItem

来完成此操作

关于ios - 推送 UIViewController 的自定义导航栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39444588/

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