Circular UIImageView in UITableView without performance hit?

前端 未结 14 2717
失恋的感觉
失恋的感觉 2020-12-12 09:50

I have a UIImageView on each of my UITableView cells, that display a remote image (using SDWebImage). I\'ve done some QuartzCore

14条回答
  •  遥遥无期
    2020-12-12 10:20

    If you showing the images over a solid background color, an easy solution could be to use an overlay image with a transparent circle in the middle.

    This way you can still use square images and add the circle image above them to get the circular effect.

    If you don't need to manipulate your images or show them on a complex background color, this can be a simple solution with no performance hit.

提交回复
热议问题