问题描述
iOS 11 中的导航栏有问题.我使用此代码:
I have a problem with a navigation bar in iOS 11. I use this code:
[UINavigationBar appearance].prefersLargeTitles = YES;
...为我的应用设置新样式.在用户拉动以刷新表格视图之前,它运行良好;然后它就坏了.
...to set a new style for my app. It works well untill a user pull to refresh on the table view; then it breaks.
这是之前拉刷新:
...这是_after:
...and this is _after:
注意:我使用 table view controller 的内置 pull-to-refresh 控件.
Note: I use the table view controller's built-in pull-to-refresh control.
我搜索了一个解决方案,但它仍然无法解决.如果有人知道如何解决这个问题,请提出一些建议.
I searched for a solution but it still eludes me. If someone knows how to fix this please drop some advice.
感谢您的支持:)
推荐答案
我也发现了这个bug,我们已经找到解决办法了.
I have catch this bug too, and we have found the solution.
您必须将您的 UITableView 限制为 superview(您的视图控制器的内容视图),在该大标题和所有相关视图开始正常工作之后.
You must constraint your UITableView to superview (contentView of your view controller), after that large title and all related views starts to work correct.
像这样:
这篇关于在 iOS 11 上调整 UI 导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!