Search code examples
swiftuidatepickeribactionuiswitch

UISwitch will not connect to @IBAction


I am creating a local notification system that allows someone to change the time that the local notification gets to them. I have a UIDatePicker and Switch.

I can't connect either of them to @IBActions so that they can perform the notification fireDate time change. It does not show in the pop-up as an option.

How do I get the switch and UIDatePicker to show IBAction? enter image description here enter image description here


Solution

  • I see that under module it displays "none". Either you need that to be set to your app, your that class "myDatePicker" doesn't exist in your app.