*** Terminating app due to uncaught exception 'NSInvalidArgumentException',reason: '-[DBFM.ViewController onPlay]: unrecognized selector sent to instance 0x7fe3586a3820'
相关代码
btnPlay.addTarget(self,action: "onPlay",forControlEvents: UIControlEvents.TouchUpInside)
btnPlay.addTarget(self,action: "onPlay:",forControlEvents: UIControlEvents.TouchUpInside)
原文链接:https://www.f2er.com/swift/326328.html