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

Init with frame #28

Open
nahlamortadatechni opened this issue Mar 23, 2016 · 1 comment
Open

Init with frame #28

nahlamortadatechni opened this issue Mar 23, 2016 · 1 comment

Comments

@nahlamortadatechni
Copy link

When use it programmatically rightHandle is not shown and seems like the slideeLine width is greater than screen size

here is my code
self.rangeSlider = [[TTRangeSlider alloc] initWithFrame:CGRectMake(0, 0, self.rangeSliderContainer.frame.size.width, self.rangeSliderContainer.frame.size.height)];
[self.rangeSliderContainer addSubview:self.rangeSlider];
self.rangeSlider.delegate = self;
self.rangeSlider.minValue = attribute.minimum;
self.rangeSlider.maxValue = max;
self.rangeSlider.selectedMinimum = currentMin;
self.rangeSlider.selectedMaximum = currentMax;
self.rangeSlider.step = attribute.sliderSteps ? attribute.sliderSteps : 1;
self.rangeSlider.enableStep = YES;

untitled 2

@StDogbert
Copy link

Got the same problem after update to iOS 9.3. Fixed it somehow :) Seems it is connected to selectedMinimum and selectedMaximum. Where do u get currentMin and currentMax?

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