Error Thread!: Understanding Why Breakpoint 1.1 Appears

Asked 2 years ago, Updated 2 years ago, 33 views

I am currently studying by buying a textbook on the market.
Place a button that looks like a signal and press the button to change the characters on the label. I'm trying to make it, but the blue and yellow buttons were well done and the simulator was able to check the operation, while the red button fell off when I pressed the button with the simulator.

Error Thread!: Breakpoint 1.1

appears.
I didn't know much about Thread, so I thought I made a mistake in connecting with the assistant editor, so I turned it off, but I couldn't understand it anymore.Please let me know if there is any solution.

class ViewController:UIViewController {
    @IBOutlet weak var resultLabel:UILabel!

    @ IBAction func blueBtnPushed (sender: AnyObject) {
        resultLabel.text="Shinjo is blue!"
        resultLabel.textColor=UIColor.blueColor()
    }

    @ IBAction funcyellowBtnPushed (sender: AnyObject) {
        resultLabel.text="Shinjo is yellow!"
        resultLabel.textColor=UIColor.yellowColor()
    }

    @ IBAction funcredBtnPushed(sender:AnyObject){
       resultLabel.text="Come on!"
       resultLabel.textColor=UIColor.redColor()
    }
}

swift

2022-09-30 19:23

1 Answers

From Comments

Thank you Sugawara.The connection was not completely disconnected.Sorry for the inconvenience. Thank you Takahiro.I deleted the breakpoint by referring to the information on the link, and now it works fine. Thank you both for your hospitality. – kobocchan

Breakpoint seems to have been pasted in an unintended place


2022-09-30 19:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.