问题描述
我在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:
注意:我使用表视图控制器的内置从上拉到刷新"控件.
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.
感谢支持:)
推荐答案
我也抓到了这个错误,我们找到了解决方法.
I have catch this bug too, and we have found the solution.
在大标题和所有相关视图开始正常工作之后,您必须将UITableView约束为超级视图(视图控制器的contentView).
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导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!