开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜