priyanka vijesh
priyanka vijesh

Reputation: 227

Searchbar controller with UITableview

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?

Upvotes: 0

Views: 199

Answers (2)

Anshuk Garg
Anshuk Garg

Reputation: 1540

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

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

Upvotes: 1

Lithu T.V
Lithu T.V

Reputation: 20021

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)

Upvotes: 0

Related Questions