[英]iOS 7 UISearchDisplayController not cleaning background when search data
I'm upgrading my Apps to iOS 7. Actually I have a big issue with UISearchDisplayController. 我正在将我的Apps升级到iOS7。实际上,UISearchDisplayController存在一个大问题。
If i display it into a PopUp until I don't start a Search it works fine, but when I insert something into the SearchBar the search works fine, but I see the search result overlapped to the old contents. 如果我在不启动搜索之前将其显示在PopUp中,则可以正常工作,但是当我将某些内容插入SearchBar时,搜索效果很好,但是我发现搜索结果与旧内容重叠。
In iOS 6 it all works fine. 在iOS 6中,一切正常。 Here is a link to an example project which shows the problem. 这里是显示问题的示例项目的链接。 Example project 示例项目
Attached to this post there are two images. 附加到此职位有两个图像。
Thank you for your help. 谢谢您的帮助。
Seems like the cell's background color is clear color, and so is the table view's. 似乎单元格的背景色是透明色,表格视图的背景色也是如此。 You can either implement the search display controller's delegate method searchDisplayController:didLoadSearchResultsTableView:
and set the background color to what you need (but not [UIColor clearColor]
). 您可以实现搜索显示控制器的委托方法searchDisplayController:didLoadSearchResultsTableView:
并将背景颜色设置为所需的颜色(但不能设置[UIColor clearColor]
)。 Or change your cells' background color to be an opaque color. 或将单元格的背景颜色更改为不透明的颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.