My table view controller implements the viewForHeaderInSection function to return the section labels in a custom font.
Currently we use transparent background but that doesn’t look good if the cells start scrolling behind the header view.
I want to draw a transparent-to-white gradient for the header view but only for the one stuck at the top.
Obviously if(section==0) would not work.
Is there a trick for this?
sometimes it’s better to think for a second before posting to stack overflow. Here is the solution I found for the record. I hope it helps somebody.