UIBezierPath draw rectangle and arcs together
问题 I want to draw one path like this: and this is what I wrote : CGFloat radius = 50; UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointMake(radius, CGRectGetMinY(rect))]; [path addLineToPoint:CGPointMake(CGRectGetMaxX(rect) - radius, CGRectGetMinY(rect))]; [path addLineToPoint:CGPointMake(CGRectGetMaxX(rect) -radius, CGRectGetMaxY(rect))]; [path addLineToPoint:CGPointMake(radius, CGRectGetMaxY(rect))]; [path closePath]; UIBezierPath *path1 = [UIBezierPath