当 UISearchBar 处于焦点状态时,SplitViewController 的弹出 UI 错误

发布于 2024-09-15 10:35:44 字数 274 浏览 2 评论 0原文

当 splitview 处于纵向模式时, rootView 显示为弹出窗口。 在这种情况下,我的 rootView 有一个顶部有一个 searchBar 的 tableView 。当我点击搜索栏时,键盘会出现,并且 splitView 的弹出窗口会自动调整其高度,但同时,我会在弹出窗口的顶部看到它。

alt text

有什么想法吗?

提前致谢。

When a splitview is in portrait mode, the rootView shows as a popover.
in this case, my rootView has a tableView with a searchBar at the top. When I tapped the search bar, the keyboard appears, and the splitView's popover automatically adjust its height, but at the same time, I get this in the top of the popover..

alt text

Any ideas?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我很OK 2024-09-22 10:35:44

嗯..显然我们必须发布这个问题才能得到答案:D,
此行为是由弹出窗口的内容引起的:有一个 tableView,其单元格
有一些自定义内容。每个内容都分配有一个标签,这些标签的数字为 1 到 5...就是这样!当我们将标签从 1 更改为 5 并将标签从 101 更改为 105 时,弹出窗口就会得到修复。

这不是我们第一次遇到与标签值相关的此类错误。所以要小心你使用的标签!!!! =P

希望这有帮助。

Well.. apparently we have to post this question to get the answer :D,
This behavior was caused by the popover's content: there is a tableView whose cells
have some custom content. There was a tag assigned for each content, and those tags where numbers from 1 to 5... And that's it!!! when we change the tags from 1 to 5 and set those from 101 to 105 the popover get fixed.

It's not the first time we get this kind of errors related to tag values. So be careful with the tags you're using!!!! =P

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文