I am new to using UIBezierPaths for drawing shapes. All the examples I have found so far include first subclassing the view, then overriding the drawRect: method and executing the drawing inside it, but I could not find anything that says with absolute certainty whether this is the only way to draw UIBezierPaths in UIView, or if this is the most pragmatic way.
Is there any other way (besides swizzling) to draw a UIBezierPath in a UIView without subclassing it?
ios objective-c uikit uiview uibezierpath
n00neimp0rtant
source share