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()
}
}
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
609 Uncaught (inpromise) Error on Electron: An object could not be cloned
568 Who developed the "avformat-59.dll" that comes with FFmpeg?
886 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.