質問

How to multiply UIStepper value (product quantity) to textfield value (product price) and get total sum in uilabel.text?

enter image description here

役に立ちましたか?

解決

UIStepper has a .value property that you can use:

double sumTotal = stepper.value * [[textField text] doubleValue];
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top