开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜