Quote:
Originally Posted by Mr.Abe90
Just a question. How could i connect a UISlider to a specific variable where the user could use the slider to change the value of the variable?
|
Hook the slider with 'Value Changed' to a method.
Code:
-(IBAction)yourMethod:(id)sender {
UISlider *slider = (UISlider *)sender;
[self setYourFloat:[slider value]];
}{