-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
  • 314,917
  • 42
  • 532
  • 579
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
  • 414
  • 1
  • 4
  • 10