gpt4 book ai didi

ios - UISearchBar 在事件时与 UITableView 内容重叠

转载 作者:IT王子 更新时间:2023-10-29 05:51:02 24 4
gpt4 key购买 nike

我有一个带有 TableView 和 UISearchController 的 View Controller 。运行应用程序时,我发现搜索栏处于事件状态时与内容重叠。当搜索栏处于事件状态时,我需要调整什么以使内容不重叠?

普通 View :

enter image description here

搜索栏处于事件状态:

enter image description here

查看 Controller 设置:

enter image description here

最佳答案

问题是因为你有 automaticallyAdjustsScrollViewInsets = true

请取消选中 enter image description here

会有所帮助:)

关于ios - UISearchBar 在事件时与 UITableView 内容重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36992932/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com