uinavigationcontroller - 从 Swift 3 代码更改导航栏的颜色和后退按钮标题

标签 uinavigationcontroller swift3 uinavigationbar uinavigationitem

仅使用代码制作我的应用程序的 UI。 找不到如何自定义情侣元素: 1.“返回”按钮现在看起来像:

enter image description here

它应该看起来像:

enter image description here

那么,如何去掉按钮标题中的“后退”文本,并保留“<”系统图标?如何更改后退按钮和导航栏标题的颜色?

最佳答案

尝试

    self.navigationController?.navigationBar.tintColor = UIColor.white

关于uinavigationcontroller - 从 Swift 3 代码更改导航栏的颜色和后退按钮标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40958996/

相关文章:

ios - Firebase 未加载数据

ios - 导航 Controller 背景图像使用 xcode 9 在 ios 11 中 self 重复

ios - 导航栏的实时模糊效果 - 状态栏无法进入

ios - 显示 UINavigationBar

ios - 在其图像上显示 UIBarButton 标题

ios - 状态栏色调和隐藏栏滑动

swift - 错误域=NSCocoaErrorDomain 代码=257 无法打开 fil ""- Firebase

swift - 调整 Swift 代码以与 Swift 3 配合使用

iphone - TabBarController + TableViewController + 导航 Controller ?

xcode - IOS:在 subview 中使用导航 Controller