Search code examples
iphonexcodeuilabeluistepper

Resetting UIStepper


I have a UIStepper set up via IB. It increases and decreases the 'label number' on my view. I'm trying to make a button which when the user presses, will reset the number and UIStepper to zero.

How can I do that?

Thanks.


Solution

  • you just need to add this to your button method

    yourStepper.value=0;
    yourlabel.text=@"0";