Joined November 2013
·

Tyler Hedrick

Pittsburgh, PA
·
·

Posted to Circle crop/mask on views over 1 year ago

Could this have performance issues? Setting a view's cornerRadius property is not as performant as drawing a circle with CoreGraphics. You could easily create a UIView subclass where the drawRect: method just draws a circle of radius self.bounds.size.width / 2.0; and just have an invariant that the view's width and height are equal. Corner radius is obviously much easier though.

Achievements
79 Karma
0 Total ProTip Views