-
Notifications
You must be signed in to change notification settings - Fork 8
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
Jump from endDot to startDot when holding touch #2
Comments
Sure ^^ Will add this feature in next version (this or next weekend). |
Thanks, great work any way, this is awesome. And one more thing. Is there a simple way to move programatically a dot ? I'm actually using it as a slider at the same time as a progress bar for audio duration. So I would like to move dot while the audio is playing in an |
Thank you so much^^. To move a dot via code you need to find the correct dot and setAngle:. You can calculate the angle with method: angleForValue:maxAngle:maxValue:minAngle:minValue:. Then you need to redraw NOCircleSelector. Still, such use of the method is not animated ;). If you want animations I can add them too, that's a good idea. Will also add it in next version. |
This is what I'm doing, for the first part.
But I'm not sure how to redraw the NOCircleSelector properly, since there is not public methods to do it. |
Very well, then you only need to call this after your code:
This will call delegate method circleSelector:updatedDot:, so if you have your text handler there it will change the text and you can delete it here. |
Oh my bad I was calling |
I guess this is not a real issue, but is there any way to avoid this comportment. It would be great to have a BOOL property to set in the CircleSelector to avoid to jump from endpoint to startpoint when user hold finger pressed and go from end to start.
If you have any tricks, let me know.
The text was updated successfully, but these errors were encountered: