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.
精彩评论