开发者

UITableView section header 1px gloss/shadow overlapping

Here's how standard section header views handle scrolling/overlaping:

UITableView section header 1px gloss/shadow overlapping

I'm trying to replicate the same behavior with custom section headers but all I get is this:

UITableView section header 1px gloss/shadow overlapping

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜