I don't understand why I have a fatal error. I'v posted a screenshot of my program declaration.
@IBOutlet weak var button: UIButton!
after
button.isEnabled = false
Thank you for your help
I don't understand why I have a fatal error. I'v posted a screenshot of my program declaration.
@IBOutlet weak var button: UIButton!
after
button.isEnabled = false
Thank you for your help
try changing the variable name
@IBOutlet weak var myButton: UIButton!
i need to search more as to why this happens but i think the button word is reserved so that is what causing the crash.
also when changing the variable name i recommend to disconnect and reconnect the outlet.
EDIT: nope that wasn't it but look at this screenshot and really verify that your outlet is connected
Please remove the old outlet which you have connected earlier and Re-connect it again. Its seem like it is not connected properly or Xcode bug. Happy coding !