今天ios程序运行报错:Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ViewController1 aries:]: unrecognized selector sent to instance 0x1756f5f0’。一开始以为是自己的协议写错了,后面发现原来是给控件的点击事件的监控连线出问题了。
(https://img-blog.youkuaiyun.com/20160510233519894)
回想起来在创建的时候发现方法的首写字母为大写,随手修改了,然后将两者又关联上。但是Aries方法现在被删掉。因此报错。只要在show the connections inspector中删掉此连线就好。