我刚刚开始了 Apple“你的第一个 iPhone 应用程序”教程,尝试在模拟器中运行应用程序时遇到了问题。
我可以输入我的姓名并选择“完成”按钮使键盘消失,但是一旦按下“你好”按钮就会出现错误。来自 Xcode 的日志读取;
2012-10-27 00:24:17.044 Hello World 2[955:c07] -[HelloWorldViewController changegreeting:]: unrecognized selector sent to instance 0x897c1a0
2012-10-27 00:24:17.047 Hello World 2[955:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[HelloWorldViewController changegreeting:]: unrecognized selector sent to instance 0x897c1a0'
*** First throw call stack:
(0x1c8e012 0x10cbe7e 0x1d194bd 0x1c7dbbc 0x1c7d94e 0x10df705 0x16920 0x168b8 0xd7671 0xd7bcf 0xd6d38 0x4633f 0x46552 0x243aa 0x15cf8 0x1be9df9 0x1be9ad0 0x1c03bf5 0x1c03962 0x1c34bb6 0x1c33f44 0x1c33e1b 0x1be87e3 0x1be8668 0x1365c 0x263d 0x2565 0x1)
libc++abi.dylib: terminate called throwing an exception
(lldb)
任何人都可以帮忙吗?我已经检查了该项目两次,每次运行时都会遇到相同的错误。