【问题标题】:Swift - How to display an image over the bar navigationSwift - 如何在栏导航上显示图像 【发布时间】:2021-12-28 11:36:28 【问题描述】: 我的 Api 以字符串形式返回 url 作为横幅图片:here 在 Swift 中,如何在导航栏上显示此图像以实现如下效果: 【问题讨论】: 标签: swift uiimageview uiimage uinavigationbar 【解决方案1】: 您可以将 UIImageView 设置为父视图,设置必要的约束使其显示在 UINavigationBar 后面,然后使用目标 URL 设置图像。 【讨论】: