質問

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.

役に立ちましたか?

解決

you just need to add this to your button method

yourStepper.value=0;
yourlabel.text=@"0";
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top