使用贝塞尔曲线绘制曲线

问题描述 投票:1回答:1

我在一个生成矩形的UIView上有这段代码。

https://gist.github.com/alanPTK/b7f424d61b51c2ca47645e7cd57295c9

并且我需要在矩形的每一侧添加曲线,我尝试使用addCurve,但是找不到像下面的屏幕截图那样的方法。我也尝试了Paint Code,但没有成功。

enter image description here

ios swift uibezierpath curve
1个回答
0
投票

[您需要在2和8等情况下用control points添加曲线

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.