user591375
user591375

Reputation: 271

drawing rounded rectangle in cell

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

Answers (2)

Hetal Vora
Hetal Vora

Reputation: 3361

Can you use a background image for the cell which has a rounded rectangle drawn in it?

Upvotes: 3

David
David

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

Related Questions