0

Possible Duplicate:
How to change UITableViewCell appearance if cellForRowAtIndexPath is not calling

I have a table view with search display controller in my app. Table view cells have custom background color, created by pattern image. The problem is when i start to searching and there are no results, table view cells created automatically (without calling cellForRowAtIndexPath:), so i can't change their appearance. But i want all my table view cells have the same background color. So, how can I achieve this?

Community
  • 1
  • 1
tagirkaZ
  • 469
  • 7
  • 19

1 Answers1

1

You could do this in viewDidLoad()
self.searchDisplayController.searchResultsTableView.backgroundColor = [UIColor redColor]; // set your color for tableview here

batman
  • 1,937
  • 2
  • 22
  • 41