ios - UISearchController search result cell background color -


my uisearchcontroller displays search results in uitableviewcells background colour have not set

enter image description here

i can see debugging views grey colour of cell.contentview. however, doesn't react me setting

cell.contentview.backgroundcolor = [uicolor whitecolor]; 

in tableview:cellforrowatindexpath: method.

are there other methods override strange grey colour?

are able provide example project reproduces scenario? tableview:cellforrowatindexpath: like? if so, can more helpful in determining issue.

without knowing specifics, might worth trying set contentview's backgroundcolor in tableview:willdisplaycell:forrowatindexpath:, occurs bit later tableview:cellforrowatindexpath:

it may worth making own subclass of uitableviewcell can better control coloring of cell.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -