NOCircleSelector icon indicating copy to clipboard operation
NOCircleSelector copied to clipboard

how to improve the display effect of circle

Open cherishloveyou opened this issue 9 years ago • 3 comments

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?

cherishloveyou avatar Aug 30 '15 13:08 cherishloveyou

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 :).

natalia-osa avatar Aug 30 '15 19:08 natalia-osa

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

cherishloveyou avatar Aug 31 '15 14:08 cherishloveyou

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

natalia-osa avatar Sep 01 '15 07:09 natalia-osa