Question

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

enter image description here

Was it helpful?

Solution

UIStepper has a .value property that you can use:

double sumTotal = stepper.value * [[textField text] doubleValue];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top