Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 UIStepper 值(产品数量)乘以文本字段值(产品价格)并在 uilabel.text 中获得总和?
UIStepper有一个.value可以使用的属性:
UIStepper
.value
double sumTotal = stepper.value * [[textField text] doubleValue];