0

I am using a searchbar controller with UITableview.The search results are coming properly.I have set the row height,separator style to none and backgroundColor clearColor and tranparent.But the issue is the result table view does not have all these styles.what to do?How to apply table view styles for search result tableview?

Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
priyanka vijesh
  • 227
  • 1
  • 3
  • 7

2 Answers2

1
self.searchDisplayController.searchResultsTableView.backgroundColor = [UIColor clearColor];

i hope this is the way, you are accessing the tableView. Let me know if it worked.

Anshuk Garg
  • 1,540
  • 12
  • 14
0

The searchbar controller doesn't have any direct dependency other than providing the input to the tableview(datasource)

I think (may be) Memory changed for the tableview(memory : allocated it again)

Lithu T.V
  • 19,955
  • 12
  • 56
  • 101