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?
Asked
Active
Viewed 196 times
0

Sanoj Kashyap
- 5,020
- 4
- 49
- 75

priyanka vijesh
- 227
- 1
- 3
- 7
-
show me some of the code first. – mineschan Sep 17 '12 at 10:49
2 Answers
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
-
in the viewDidLoad of the UIViewController where you have the searchBar added. – Anshuk Garg Sep 17 '12 at 11:25
-
But now the first table is coming and search result table is coming over the first table. – priyanka vijesh Sep 17 '12 at 11:38
-
its because u are using clearColor. u mentioned it in the question, so i told you how to use it. What all features you need to add exactly? – Anshuk Garg Sep 17 '12 at 11:40
-
you must be having 2 tables. and can you please post some code so that i can help u out. – Anshuk Garg Sep 17 '12 at 12:34
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