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

Unable to change color of handle #25

Open
bricknewer opened this issue Jul 15, 2014 · 2 comments
Open

Unable to change color of handle #25

bricknewer opened this issue Jul 15, 2014 · 2 comments

Comments

@bricknewer
Copy link

I'm using this circular slider as a music progress bar, and would like to make the handle not visible since it indicates some possibility of user interaction. I tried to set the handleColor to a clearColor and to colorWithHue:0 saturation:0 brightness:0 alpha:0 and neither settings were responsive visually. Based on further testing, my issue is that setting the handleColor doesn't seem to have any effect. I have tested this on all handle types (including leaving type set to the default value).

@azrahim4u
Copy link

I think you aren't setting your handle type. Try setting your handleType before setting the handleColor.

[self.circularSlider setHandleType:EFBigCircle];
[self.circularSlider setHandleColor:[UIColor clearColor]];

The above code works fine for me.

@bricknewer
Copy link
Author

I found that I was setting the color twice, which led to my issue. I noticed that when I use EFBigCircle, EFDoubleCircleWithOpenCenter, and EFDoubleCircleWithClosedCenter it decreases my circleSlider's size and I would rather not have to guess how much larger to make my slider to account for the change in size, so I just added another option to handleType called EFNoCircle which effectively is one of the semiTransparent sliders but the handle isn't drawn.

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