Rounded Corners on UIImage

前端 未结 12 1061
终归单人心
终归单人心 2020-12-02 04:08

I\'m trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I\'ve got code that generally work, but it occasionally cra

12条回答
  •  误落风尘
    2020-12-02 04:42

    If it only crashes some of the time, figure out what the crash cases have in common. Is dstRect the same every time? Are the images ever a different size?

    Also, you need to CGPathRelease(borderPath), although I doubt that leak is causing your problem.

提交回复
热议问题