UIBezierPath AutoLayout

suggest change

For bezier path to get resized based on the view frame, override the drawRect of view that you are drawing the bezier path :

- (void)drawRect:(CGRect)frame
    UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(CGRectGetMinX(frame), CGRectGetMinY(frame), CGRectGetWidth(frame), CGRectGetHeight(frame))];
    [UIColor.grayColor setFill];
    [rectanglePath fill];

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents