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

Context needs to be cleared when drawing - Swift #13

Open
asmusto opened this issue Apr 11, 2015 · 0 comments
Open

Context needs to be cleared when drawing - Swift #13

asmusto opened this issue Apr 11, 2015 · 0 comments

Comments

@asmusto
Copy link

asmusto commented Apr 11, 2015

Hi, thanks for this source code. But I had an issue when using this in swift and the dots are using images.
After debugging it, I found that it needs to clear the context before drawing (in line 121). (It doesn't matter whether I checked clear graphics context in interface builder or not).

    CGContextClearRect(context, rect);
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

1 participant