开发者

Custom UISearchbar searchresults tableviewcell

开发者 https://www.devze.com 2022-12-19 03:15 出处:网络
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

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

精彩评论

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