I'm an old dog trying to learn some new tricks (Objective C , Xcode, development of an app, etc.), and I'm having a lot of trouble getting a slider value into a calculation. (Most of the tutorials on the web illustrate how to put the slider value into a text box or label, but I want to use the slider value to scale accelerometer data (say, "rawaccelX"), which are float values.
One problem that I have is that I don't really know how to specify the output of the method "- (IBAction)sliderChangedid)sender". Another problem is that when I try to multiply the slider value times "rawaccelX", I keep getting the message "Invalid operands to binary expression ('ULabel' and 'double')".
Would someone please provide me a snippet of code that will do this? Thanks much!!!
One problem that I have is that I don't really know how to specify the output of the method "- (IBAction)sliderChangedid)sender". Another problem is that when I try to multiply the slider value times "rawaccelX", I keep getting the message "Invalid operands to binary expression ('ULabel' and 'double')".
Would someone please provide me a snippet of code that will do this? Thanks much!!!