Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

TableView section text color on iOS

$
0
0

Hi,

I am wondering if it is possible to change the color of the TableView section font.
So far I was able to do that by using custom TableViewRenderer, overriding the Draw method and using:
for (int i = 0; i < Control.NumberOfSections(); i++)
if (table.GetHeaderView(i) != null)
GetHeaderView(i).TextLabel.TextColor = UIColor.White;
However when the table is scrolled some times header color goes back to being grey.
Is there a better way of doing this or is there a way to fix the current method?

PS. GetHeaderView(i) returns null sometimes


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>