Thanks for answering my question.
I'm writing my first app in Swift. It was running fine until I added a UISwitch and programmed it. It gives me this output when I attempt to toggle the switch:
2015-08-02 14:02:36.091 Hello World[1885:633995] HangTracer interval is 0, forcing to 1s
2015-08-02 14:02:38.890 Hello World[1885:633995] -[Hello_World.ViewController myButton:]: unrecognized selector sent to instance 0x144e3a880
2015-08-02 14:02:38.891 Hello World[1885:633995] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Hello_World.ViewController myButton:]: unrecognized selector sent to instance 0x144e3a880'
*** First throw call stack:
(0x185ccc4d0 0x19a0aff9c 0x185cd31ec 0x185cd0188 0x185bd520c 0x18b36de08 0x18b36dd84 0x18b356934 0x18b5bef6c 0x18b7bd724 0x18b87858c 0x18b4d5b50 0x18b369104 0x18b877c30 0x18b32928c 0x18b3273ac 0x18b367088 0x18b3665ec 0x18b337908 0x18b335fac 0x185c83d6c 0x185c83800 0x185c81500 0x185bb1280 0x190b600cc 0x18b39edf8 0x10008614c 0x19a8f28b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
I have no idea what's wrong. Why is myButton affecting a different, unrelated variable? (mySwitch). If need be I can upload the code as well.