问题描述
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 导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)