1

The calculationField is a UITextField.

I have shown the optionals and removed the rest of the code. I am not used to debugging in xCode, so if you can provide some links to learning how to use xCode's debugging area, that would be great!

@IBAction func oneButton(_ sender: Any) {
    if isTyped == false {
    calculationField.text! = ""
    calculationField.text! += "1"
    isTyped = true
    } else {
        calculationField.text! += "1"
    } }

error message shown on xCode

Ryan Haire
  • 23
  • 5

0 Answers0