Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何处理 strokeEnd 和strokeStart相同时有个点的问题 #3

Open
Gentear opened this issue Aug 31, 2017 · 1 comment
Open

Comments

@Gentear
Copy link

Gentear commented Aug 31, 2017

如题

@mengxianliang
Copy link
Owner

layer有个lineCap属性,如果设置成kCALineCapRound,那么layer的末尾就会以lineWidth为直径行成一个半圆,如果strokeEnd和strokeStart相同,那么就是一个完整的圆。所以如果想隐藏这个点,需要把layer的lineCap属性设置成kCALineCapButt即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants