nuclearace / socket.io-client-swift-example

An example of socket.io-client for Swift
176 stars 65 forks source link

Crash: [TicTacIOiOS.ViewController btnClicked:]: unrecognized selector #10

Open nikunjazilen opened 7 years ago

nikunjazilen commented 7 years ago

Hi,

I successfully setup all configuration steps and also its connected to my local machine but when I tap on any button its crashed due to the above reason. Also, I checked its properly connected the action but still its crashed. Can you please help me to resolve this issue?

Log: Attempting to connect to http://192.168.5.60:8900 Optional(<SocketIO.SocketIOClient: 0x15e62520>)

Thanks Nikunj

nkanellopoulos commented 7 years ago

Just add a "" before the parameter of the function. It should read:` btn: UIButton` Syntax changed from Swift 2.x to Swift 3 and this creates a runtime error in the ObjC runtime.

nikunjazilen commented 7 years ago

Hi,

Thanks for the reply. Issue resolved.