Here's how standard section header views handle scrolling/overlaping:
I'm trying to replicate the same behavior with custom section headers but all I get is this:
It seems that in the default behavior, the top 1px line of the bottom header view overlaps the bottom 1px line of th开发者_运维知识库e top header view. This can also be observed below the navbar, where that same top 1px line disappears underneath it.
Setting a contentInset on the tableview fixes the navbar situation, but not the overlapping issue. I've also tried playing with the maskToBounds and clipToBounds properties, but no luck. Any clue?
As Mark Adams mentioned, there doesn't seem to be any public API to deal with this, so in my cellForRowAtIndexPath:
method I did something along these lines:
if(isLastCellInSection)
cell.drawBottomLine = NO;
else
cell.drawBottomLine = YES;
精彩评论