UIBezierPath AutoLayout

對於基於檢視框架調整大小的 bezier 路徑,覆蓋要繪製貝塞爾曲線路徑的檢視的 drawRect:

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