I add UISlider to view programmatically like this:
UISlider * sideslider = [[UISlider alloc] initWithFrame:CGRectMake(canvasWidth +((canvasWidth) - (recwidth) / 4) /b2, recheight - 70, (recwidth) / 4, 20)];
[sideslider setMaximumValue:solution0->Plan->HDivisions.count];
// sideslider
int slidervalue = sideslider.value;
[self addSubview:sideslider];
I need to add this event handler
-(IBAction)updateside:(UISlider *)sender;
to this slider after creating it ?
1 Answer