【踩坑】Swift运行时报错

前言

Swift运行时,点击按钮后报错:terminating due to uncaught exception of type NSException

原因

  • 按钮绑定了其他函数,但是函数不存在

解决问题

  • 选中按钮->Show the Connections inspector->删除按钮与不存在的函数之间的绑定关系

完成

参考文献

CSDN——-Hedon