开发者

Corners of a custom table view grouped

I am creating开发者_JAVA技巧 a custom tableView with style grouped. My custom cell doesn't adjust with the rounded corners, only when the table is selected.

Any idea why this happens?

Thanks


Given the limited provided information about how you draw the cells, here is a blog post that shows a good way of how to do it, along with a gradient background. Basically, you need to draw the corners yourself because iOS wont clip it for you if you override the drawing behavior.


Full Disclosure: It is my code blog.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜