swift - 在 iOS13 中更改 UIImagePickerController 的 NavigationBar 标题

标签 swift ios13 albumart

在iOS 12及之前我可以做以下自定义相册首页的标题。

func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
    viewController.title = "customized title!!"
}

但它不再适用于 iOS 13。 有谁可以帮我定制吗?

最佳答案

你可以使用这段代码:-

 func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool) {
        viewController.navigationItem.title = "customized title"
    }

关于swift - 在 iOS13 中更改 UIImagePickerController 的 NavigationBar 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59278138/

相关文章:

ios - 从两个应用程序访问共享数据

ios - 如何在 iOS13 中收到推送通知时自动增加通知角标(Badge)编号

swift - 模块 'Alamofire' 没有名为 'upload' 的成员

iphone - 从 MP3 文件/ID3 标签获取专辑插图

ios - 调整文本的字体大小以适应 UIButton

ios - 路线应用模糊成员

objective-c - Swift CAKeyframe 动画不显示图像

swift - 用于恢复不同数据模型的硬编码 NSUserActivityTypes

android - 如何获得专辑封面? ALBUM_ART 列索引为 -1

ffmpeg : convert FLAC to mp3 and add album art in one step