Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS 7 UISearchDisplayController在搜索数据时未清理背景_Ios_Popup_Ios7_Uisearchbardisplaycontrol - Fatal编程技术网

iOS 7 UISearchDisplayController在搜索数据时未清理背景

iOS 7 UISearchDisplayController在搜索数据时未清理背景,ios,popup,ios7,uisearchbardisplaycontrol,Ios,Popup,Ios7,Uisearchbardisplaycontrol,我正在将我的应用升级到iOS 7。实际上,我对UISearchDisplayController有一个大问题 如果我将其显示在弹出窗口中,直到我没有开始搜索,它就可以正常工作,但是当我在搜索栏中插入内容时,搜索工作正常,但我看到搜索结果与旧内容重叠 在iOS 6中,一切正常。下面是一个指向示例项目的链接,该项目显示了该问题。 附在这篇文章里有两张图片 谢谢你的帮助 单元格的背景色和表格视图的背景色似乎都是透明色。您可以实现搜索显示控制器的委托方法searchDisplayController

我正在将我的应用升级到iOS 7。实际上,我对UISearchDisplayController有一个大问题

如果我将其显示在弹出窗口中,直到我没有开始搜索,它就可以正常工作,但是当我在搜索栏中插入内容时,搜索工作正常,但我看到搜索结果与旧内容重叠

在iOS 6中,一切正常。下面是一个指向示例项目的链接,该项目显示了该问题。

附在这篇文章里有两张图片

谢谢你的帮助


单元格的背景色和表格视图的背景色似乎都是透明色。您可以实现搜索显示控制器的委托方法
searchDisplayController:didLoadSearchResultsTableView:
,并将背景颜色设置为所需的颜色(但不包括
[UIColor clearColor]
)。或者将单元格的背景色更改为不透明色。

单元格的背景色似乎是透明色,表视图的背景色也是透明色。您可以实现搜索显示控制器的委托方法
searchDisplayController:didLoadSearchResultsTableView:
,并将背景颜色设置为所需的颜色(但不包括
[UIColor clearColor]
)。或者将单元格的背景颜色更改为不透明颜色