可以参考这篇博客 https://www.cnblogs.com/jaesun/p/iOS-CAShapeLayerUIBezierPath-hua-xian.html 转载于:https://my.oschina.net/LBBB/blog/3064754