UISearchBar上方的UITableView背景色

时间:2015-05-28 16:56:41

标签: ios objective-c uitableview uisearchbar

我在GroupedTableView的标头中添加了UITableView,我在界面构建器中设置了ViewGroupedTableView的背景颜色自定义颜色,但在运行应用程序并向下滚动表格视图时,我获得了搜索栏上方var editor = document.getElementById ("editor-content"); var bold = document.createEvent('TextEvent'); bold.initTextEvent('textInput', true, true, null, "**"+"boldtext"+"**"); editor.dispatchEvent(bold); 的默认背景颜色

Getting default background color about the search bar

2 个答案:

答案 0 :(得分:0)

它是滚动视图的背景颜色。添加内容大小以滚动视图并将布局添加到搜索栏和表视图。这应该修复

答案 1 :(得分:-1)

这是添加到分组样式表视图的默认颜色。

tableView.backgroundColor值设置为您想要的颜色。