简体   繁体   English

如何使截面标题为非矩形且没有难看的下溢?

[英]How to make a section header with an non-rectangular shape without ugly underflow?

I made an custom UITableView. 我做了一个自定义的UITableView。 Then I made a custom header for sections. 然后,我为各节制作了一个自定义标题。 It has round corners. 它有圆角。 But unfortunately, the rows of the section are visible in those round corners when the header floats over them. 但是不幸的是,当标题浮在这些圆角上时,该部分的行在那些圆角中可见。

I could just make a background color so the corners are not transparent. 我可以设置背景颜色,以使拐角不透明。 But that is not a solution since my whole table has a background image and the section header can move. 但这不是解决方案,因为我的整个表都有背景图像,并且节标题可以移动。

Is there any way to get the clipping region for the rows a little bit more downwards? 有什么办法可以使行的剪切区域向下更多一点? I mean: They should not appear under that section header. 我的意思是:它们不应出现在该节标题下。

听起来好像您没有为标题视图设置适当的高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM