在 iOS 11 上调整 UI 导航

2023-06-12移动开发问题
2

本文介绍了在 iOS 11 上调整 UI 导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

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

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

Cocos2d - 如何检查不同层中对象之间的交集
Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)...
2024-08-12 移动开发问题
8

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

如何将 32 位 PNG 转换为 RGB565?
How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)...
2024-08-12 移动开发问题
21

正确的 cocos2d 场景重启?
Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)...
2024-08-12 移动开发问题
7