ios - UIBarButtonItem 在 unwind segue 之后仍然被选中/突出显示

标签 ios swift uibarbuttonitem

这里有个小问题。

我有一个 UIBarButtonItem,它可以连接到另一个 TableView 。当用户在这里完成后,我已经实现了一个回到第一个 TableView 的展开转场。一切正常,除了 UIBarButtonItem 在展开 segue 之后仍然被选中/突出显示 which can be seen here .我不知道为什么会这样,想知道如何解决这个问题?

提前致谢。

编辑:我的意思是this当我说它是嵌入式的时候

最佳答案

这是IOS 11.2的bug,我是这样解决的:

override func viewWillDisappear(_ animated: Bool) {
    navigationController?.navigationBar.tintAdjustmentMode = .normal
    navigationController?.navigationBar.tintAdjustmentMode = .automatic
}

关于ios - UIBarButtonItem 在 unwind segue 之后仍然被选中/突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47704926/

相关文章:

ios - 从 didFinishLaunchingWithOptions 打开 ViewController

ios - UIBarButtonItem 样式普通更改字体

iPhone SDK : UIBarButtonItem not refreshing after Memory warning

ios - 核心数据获取请求优化

iphone - 在 UILocalNotification sound 中设置录制的音频

ios - Xamarin Form,iOS,仅支持IPv6网络

swift - 如何在 Swift 4 中编写 GCD asyncAfter?

ios - 使用图像数组进行页面控制

ios - 如何从 iOS 设备获取硬件采样率?

ios - 添加 UIImage 或 UILabel 到 navigationItems