3

ViewForHeaderInSection - create the header that will display correctly in all ca...

 3 years ago
source link: https://www.codesd.com/item/viewforheaderinsection-create-the-header-that-will-display-correctly-in-all-cases.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ViewForHeaderInSection - create the header that will display correctly in all cases

advertisements

I have an interesting problem/question and i'm not sure if it is even doable. So I have a custom header view for regular UITableView. But it's transparent and it doesn't fill fill table width. So it displayed properly when table is scrolled and this header view is displayed above cell content (sticked to the top). But when same header is displayed between two sections down - it looks ugly, because it's transparent and it's either displayed above black rectangle or above table background.

I was wondering is there way to customize header view for when it's stick to the top and when it's not. Or... may be it's possible to specify what needs to be displayed underneath header view when it's between sections. Something like sectionSeparatorView?

v3ePH.png

Why not to change to UITableViewStyleGrouped ? In that case section headers doesn't float atop of table cells.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK