iOS 11更喜欢大型标题的怪异过渡 [英] iOS 11 prefersLargeTitles Weird Transition
本文介绍了iOS 11更喜欢大型标题的怪异过渡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我在iOS 11中遇到了一个新的大标题的怪异问题,而不是我试图在这里进行10秒的屏幕录像以记录正在发生的事情
So I'm having a weird issue with the new large titles in iOS 11. Instead of me trying to badly and confusingly explain the issue here is a 10-second screen recording of what is happening:
如您所见,在具有以下功能的视图控制器之间进行转换时,会出现一个怪异的黑条
As you can see there is a weird black bar that appears when transitioning between a view controller that has
navigationItem.largeTitleDisplayMode = .never
和设置为 .always
提前谢谢!
推荐答案
在进行转换之前,请进行以下设置:
Before the transition set this:
self.navigationController?.view.backgroundColor = .white
这篇关于iOS 11更喜欢大型标题的怪异过渡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文