ios - 去掉 UITableView 上面的行

标签 ios uitableview border line uisearchbar

我有一个 UITableView(恰好有一个 UISearchBar),但似乎无法弄清楚如何去掉它上方的白色/灰色边框。我需要在 UISearchBar 和它上面的黑色之间有无缝的黑色。

我已经尝试隐藏 UISearchBar 以查看是否与它有关,但该行仍然出现。

有什么想法吗?

Line

最佳答案

就我而言,它有助于设置:

    searchBar.clipsToBounds = YES;

关于ios - 去掉 UITableView 上面的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14228010/

相关文章:

iOS UITapGestureRecognizer 多次点击

iphone - 如何在 iphone sdk 中包含文件 pcap.h?

ios - 使用自定义 UITableViewCells 循环遍历 UITableView

CSS 全边框顶部?

css - 如何更改此聊天框的边框,使其看起来像附图中的那样

android - 如何在xml android中绘制半边框

ios - 重写 NIB 内 UIImageView 的 initWithImage

ios - UIDocumentPickerViewController - 如何设置导航栏颜色

iphone - 如何在不重新加载完整表格的情况下更新 UITableVIewCell

ios - 在我的模型中查找元素的 UITableViewCell