UIBezierPath AutoLayout
suggest changeFor 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];
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents