Hello
When I'm trying to get the value of a UISlider Object, I always get the value 0.0, regardless, what the actual value is
-(IBAction)push: (id)sender // is called by pushing a Button
{
test = [slider value]; // Slider value should be 7.5
[label setText:[NSString stringWithFormat"%f",test]]; //label is an outlet to a label , 0.000 is printed out
}
When i type
test = 3.0;
instead of the value message, the correct value is printed out, so there has to be something wrong with the value property.
Another strange thing: when i want to "po test" in the console I get "Cannot access memory at address 0x0"
Edit: I forgot to say: test is a global float of my AppController class, of which the method push is part of.
When I'm trying to get the value of a UISlider Object, I always get the value 0.0, regardless, what the actual value is
-(IBAction)push: (id)sender // is called by pushing a Button
{
test = [slider value]; // Slider value should be 7.5
[label setText:[NSString stringWithFormat"%f",test]]; //label is an outlet to a label , 0.000 is printed out
}
When i type
test = 3.0;
instead of the value message, the correct value is printed out, so there has to be something wrong with the value property.
Another strange thing: when i want to "po test" in the console I get "Cannot access memory at address 0x0"
Edit: I forgot to say: test is a global float of my AppController class, of which the method push is part of.