iphone - 搜索显示 Controller 搜索栏

标签 iphone ios objective-c

这让我抓狂,我不知道搜索栏后面的黑线是什么。

我的 View 层次结构是 UINavigationController -> UITableViewController 和 SearchDisplayController,我使用以下代码自定义搜索栏的外观:

[[UISearchBar appearance] setImage:[ApplicationStyle searchBarIconImage] forSearchBarIcon:UISearchBarIconSearch state:UIControlStateNormal];
[[UISearchBar appearance] setBackgroundImage:[ApplicationStyle searchBarImage]];
[[UISearchBar appearance] setSearchFieldBackgroundImage:[ApplicationStyle searchBarFieldImage] forState:UIControlStateNormal];

我用作背景的图像是 640px x 88px,无论如何它都不是透明的。知道这可能是什么吗?

enter image description here

最佳答案

关于iphone - 搜索显示 Controller 搜索栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17056559/

相关文章:

iphone - iOS SDK : How to get the date out of a UIDatePicker?

ios - 后端的 iPhone Google+ 登录和 OAuth2

iphone - UIImagePickerController 媒体类型 kUTTypeMovie 运行时异常

iphone - 将信用卡信息存储在云端以与基于休息的服务进行交互

iphone - ios蓝牙不支持tcp/ip协议(protocol)

ios - 使用逻辑 ||有常量操作数

ios - 验证错误 : The bundle contains disallowed nested bundles

iphone - 使用 XCODE 进行纯 Objective C 编程?

ios - Swift - 使用 tableView 的大标题过渡

objective-c - 当前位置返回 0