最佳答案
供将来引用,当您仅为normal
控件状态设置外观属性时,会发生重影:
UIBarButtonItem.appearance().setTitleTextAttributes([NSAttributedString.Key.font : UIFont.barButtonBody()], for: UIControl.State.normal)
为了防止重影,还需要设置为highlighted
状态:
UIBarButtonItem.appearance().setTitleTextAttributes([NSAttributedString.Key.font : UIFont.barButtonBody()], for: UIControl.State.highlighted)
关于ios - UINavigationBar 大标题重影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54777441/