0

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

enter image description here

German
  • 137
  • 17

1 Answers1

1

UIStepper has a .value property that you can use:

double sumTotal = stepper.value * [[textField text] doubleValue];
iwasrobbed
  • 46,496
  • 21
  • 150
  • 195