How do I add a UIImage to grouped UITableViewCell so it rounds the corners?

后端 未结 5 701
囚心锁ツ
囚心锁ツ 2021-02-14 14:38

I\'m trying to add images to table cells in a grouped UITableView but the corners of the images are not clipped. What\'s the best way to go about clipping these (besides clippin

5条回答
  •  甜味超标
    2021-02-14 14:58

    There isn't a built-in standard way to do this, but it's not terribly hard to do in your own code. There are examples on how to round corners on an UIImage on the web, see for example http://blog.sallarp.com/iphone-uiimage-round-corners/.

提交回复
热议问题