简体   繁体   English

iOS 7 UISearchDisplayController无法在搜索数据时清除背景

[英]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.

相关问题 iOS:如何使用UISearchDisplayController搜索而不是过滤器 - iOS: How to use a UISearchDisplayController to search instead of filter 使用UISearchDisplayController时显示搜索结果崩溃 - Displaying search results crashes when using UISearchDisplayController UISearchDisplayController的全屏背景拦截了iOS 7中的触摸事件 - UISearchDisplayController's full-screen background intercepts touch events in iOS 7 使用核心数据异步 UISearchDisplayController 时出现 NSRangeException - NSRangeException when using Core Data Asynchronous UISearchDisplayController UISearchDisplayController / UISearchResultsTableView是否在每次搜索中添加额外的行? IOS 7 - UISearchDisplayController / UISearchResultsTableView Adding in Extra Line with Each Search ? iOS7 iOS 7 UISearchDisplayController搜索栏在搜索时重叠状态栏 - iOS 7 UISearchDisplayController search bar overlaps status bar while searching 删除背景颜色时,使用UISearchDisplayController删除行UISearchBar - Remove line UISearchBar with UISearchDisplayController when remove the background color 当UISearchDisplayController处于活动状态时,搜索栏上方的额外空间 - Extra space above search bar when UISearchDisplayController is active 解雇UISearchDisplayController时如何在搜索栏中保留文本 - How to keep text in search bar when dismiss UISearchDisplayController 当用户在UISearchDisplayController中按键盘上的“搜索”时收到通知 - Getting notified when user presses “Search” on keyboard in UISearchDisplayController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM