zsisme
ios核心动画高级技巧

Updated 3 years ago

刘晓明(递归) (@siemenliu) started discussion #218

a year ago · 0 comments

Open

CAShapeLayer是一个通过矢量图形而不是bitmap来绘制的图层子类。你指定诸如颜色和线宽等属性,用CGPath来定义想要绘制的图形,最后CAShapeLayer就自动渲染出来了。当然,你也可以用Core Graphics直接向原始的CALyer的内容中绘制一个路径,相比直下,使用CAShapeLayer有以下一些优点:

CAShapeLayer (Edit this file)

相比之下,使用CAShapeLayer有以下优点:

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant