drawing rounded rectangle in cell
I cant seem to find the right code t开发者_运维问答o be able to draw a rectangle (rounded corners) inside each custom cell of a uitableview. How should I do this and where does the code go? Thanks
Can you use a background image for the cell which has a rounded rectangle drawn in it?
You should read the UIBezierPath documentation. You can use the method + bezierPathWithRoundedRect:cornerRadius:
of UIBezierPath
. Place it in the drawing method of your cell.
精彩评论