views:

43

answers:

1

I have slider in my table's cell, here is my slider initialization code:

UISlider* slider = [[UISlider alloc] init];
slider.continuous = NO;

slider.maximumValue = 2;
slider.minimumValue = 0.5f;
slider.value = 0.5f;

...
//put slider into cell

And I can not move this slider's thumb. Why? Please, tell me what I do wrong?

UPDATE: if set slider's initial value to 0.500001f - it works!

A: 

If your thumb does not activate the slider, it is most likely because there is a UIView above it. Please post your code for cellForRowAtIndexPath

coneybeare
I do not think that problem in UIView above slider, because if I set initial value for slider NOT equal it's minimum value - thumb works, until it tracks to minimum value.I use my own UITableViewCell subclass, and I think code for cellForRowAtIndexPath do not help, anywhere:- (UITableViewCell*) tableView :(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)cellForRowAtIndexPath { TableViewCellEx* myCell = ...; ... //slider creation ... myCell.embeddedView = slider;}TableViewCellEx's embeddedView property store view which will be added as subview to cell
iKiR
Please, any help?
iKiR
update your question with your code and it will help others see the issue.
coneybeare