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

how to improve the display effect of circle #4

Open
cherishloveyou opened this issue Aug 30, 2015 · 3 comments
Open

how to improve the display effect of circle #4

cherishloveyou opened this issue Aug 30, 2015 · 3 comments

Comments

@cherishloveyou
Copy link

as the draw circle, if radius of the circle is too small. It seems the circle's edge is not round. is there a way draw a small circle, that looks good like a png file made by photoshop?

@natalia-osa
Copy link
Owner

I'm not sure what is "too small" and what is "not round". If you provide a screenshot or more details (like the value) it would be easier to help. However I think that I know the problem here. The solution:
Just leave dotRadius > 0. Eg:

[self.circleSelector setFrame:CGRectMake(150, 150, 10, 10)];
[self.circleSelector setDotRadius:1.f];

The output:

simulator screen shot 30 aug 2015 21 26 09

Hope that helps.

Also, if you use this library just to draw such a small circle it's kinda too big implementation for such small feature. If so, use other library or write own UIView subclass and use CGContextAddEllipseInRect function :).

@cherishloveyou
Copy link
Author

sorry for my poor english, what I mean is the circle graphics have a jagged edge if the radius is small, but if made a same circle by photoshop, seem much better. here is my screenshot!
ios simulator screen shot aug 30 2015 12 26 51 am copy

@natalia-osa
Copy link
Owner

The NOCircleSelector is the white border with red inside? Only grey overlay looks bad. How did you do that grey colour?

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

No branches or pull requests

2 participants