How can i draw UIBezierPath on UIImageView? I have tried following code but when UIImageView's image is nil then I am only able to see the path, when I add the image this path is overlapped with the UIImageView's image. I want to draw the path above the UIImageVIew's image.
- The image might be overwriting the context. Maybe have two imageviews? One for the image, and another on top for the line?Msencenb– Msencenb2012-06-12 07:19:55 +00:00Commented Jun 12, 2012 at 7:19
- 1You didn't provide any reference to the code you had tried. Anyway - UIImageView is a beast of it's own (it will not call drawRect for example). You could for example add UIImageView to a UIView and another transparent UIVIew on top of it and draw the UIBezier path to the last one.Rok Jarc– Rok Jarc2012-06-12 07:35:36 +00:00Commented Jun 12, 2012 at 7:35
Add a comment |