Custom UISearchbar searchresults tableviewcell
I have a custom layout tableviewcell for showing my normal tableview but when I search the tableview with the UIsearchbar the search results ignore the custom layout e.g.开发者_开发技巧 cellbackground.
Where can I layout custom cells for searchresults?
Thanks
If you use a UISearchDisplayController, you should set your controller to be the data source for the results table. Then you return the custom cells in tableView:cellForRowAtIndexPath:
(check the table view provided by the the first argument).
精彩评论