Reputation: 271
I cant seem to find the right code to 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
Upvotes: 1
Views: 405
Reputation: 3361
Can you use a background image for the cell which has a rounded rectangle drawn in it?
Upvotes: 3
Reputation: 14404
You should read the UIBezierPath documentation. You can use the method + bezierPathWithRoundedRect:cornerRadius:
of UIBezierPath
. Place it in the drawing method of your cell.
Upvotes: 2