【发布时间】:2013-06-12 10:39:37
【问题描述】:
这快把我逼疯了,我不知道搜索栏后面的黑线是什么。
我的视图层次结构是一个 UINavigationController -> UITableViewController 和一个 SearchDisplayController,我使用以下代码自定义搜索栏的外观:
[[UISearchBar appearance] setImage:[ApplicationStyle searchBarIconImage] forSearchBarIcon:UISearchBarIconSearch state:UIControlStateNormal];
[[UISearchBar appearance] setBackgroundImage:[ApplicationStyle searchBarImage]];
[[UISearchBar appearance] setSearchFieldBackgroundImage:[ApplicationStyle searchBarFieldImage] forState:UIControlStateNormal];
我用于背景的图像是 640 像素 x 88 像素,并且无论如何都不透明。任何想法这可能是什么?
【问题讨论】:
-
尝试为tableView设置背景颜色:self.tableView.backgroundView = nil; self.tableView.backgroundColor = [UIColor greenColor];
标签: iphone ios objective-c