I am using iOS 5.0 and I’m trying to get a value from my UIStepper.
I set the minimum to 0.0
The maximum is 25.0
The step value is 1.0
The starting value is 15.0
If I tap the + button ten times, the + will grey out so I know I’m at the max.
I’ve wired the “value changed” event in the uistepper to an IBAction called stepulate
That method only has an NSLog
Looks like
NSLog(@"%d", [myStepper value]);
I keep getting zero printed. No matter how many times I tap the + or – button.
The UIStepper uses a float for its value. Try this: