-1

Here is my code:

@IBOutlet weak var getUrl: UITextField!
@IBOutlet weak var getUrlLabel: UILabel!

@IBAction func changeBtn(_ sender: Any) { 
    if let value = getUrl.text {
        getUrlLabel.text = value
        print(value)
    }
}

And it gives an error : EXC_BAD_INSTRUCTIONS (code=EXC_i386_INVOP, subcode=0x0)

rmaddy
  • 307,833
  • 40
  • 508
  • 550
Baytoor
  • 1
  • 1

1 Answers1

1

Most likely your xib/storyboard contains a connection that you edited or removed, go the the view and check connection inspector, if it doesn't have additional unneeded connections

sken3r
  • 354
  • 1
  • 3
  • 10