开发者

drawing rounded rectangle in cell

开发者 https://www.devze.com 2023-02-23 02:11 出处:网络
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? ThanksCan

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

精彩评论

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