2

How to draw beziercurve above the image of the UIImageView. I am subclassing UIImageView and drawing circles using UIBezierCurve on the corners of image view. But as soon as i place the image in UIImageView the inside part of circles are overlapped by the image. So is there any solution which lets me draw the UIBezier path on the UIimage of uiimageview ?

1 Answer 1

2

You can try subclassing simple UIView and drawing an image yourself using drawInRect: method of UIImage instance. It should look something like this:

- (void)drawRect:(CGRect)dirtyRect { // note you can get image from anywhere UIImage *image = [UIImage imageNamed:@"MyImage"]; [image drawInRect:self.bounds]; // now that image is drawn, everything // past this point will be drawn on top of it ... } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.