views:

239

answers:

0

Hi,

I have a tableview with 2 labels and 1 slider on each cell.

Now, the problem is when I change the value on the slider, I want to update one of the label on respective row.

I tried attaching a selector [mySlider addTarget:self action:@selector(sliderAction:) forControlEvents:UIControlEventValueChanged];

and I set [tableView reloadData] within the sliderAction () so that everytime, i move the slider, the object at the concerned row is replaced and the tableview reloadData is called.

This seems to be fine when I use it normally. When I tried to make it smooth by selecting the "continuous" option for the UISlider on nib file, the App crashes.

Is there any other (easy) way to update the label smoothly when a slider is moved?

Plz help.

Thanks