views:

12

answers:

0

I'm currently working on an application in which I'm using grouped UITableViews. The design calls for a gradient background when the cells are in a selected state. I've achieved this by using an image that was created with the proper gradient. This works perfectly when it's in the middle cells however, when it's the top and bottom cells the images overflows outside the rounded off corners and looks really bad. Is there a way to tell the cell to clip the image so that it doesn't go outside the rounded off edges. If this doesn't work would 2 images 1 for the top and 1 for the bottom with the corners rounded off work and if so is there an easy way to determine the dimensions I need to make those images?