【发布时间】:2011-09-30 00:20:56
【问题描述】:
我一直在使用已经定义接口的示例代码中的 MonoTouch 和 Xcode 接口构建器。
添加一个按钮并给它一个点击回调后,我发现其中一个按钮不再响应点击,而是崩溃了:
2011-09-30 01:51:35.361 RedLaserSample[19437:707] -[RLSampleViewController scanPressed]:无法识别的选择器发送到 实例 0x17e1260 MonoTouch.Foundation.MonoTouchException: 抛出 Objective-C 异常。名称:NSInvalidArgumentException 原因:-[RLSampleViewController scanPressed]:无法识别的选择器 发送到 MonoTouch.UIKit.UIApplication.Main 的实例 0x17e1260 (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in :0 at RedLaserSample.Application.Main (System.String[] args) [0x00000] 在 /Users/dev/Desktop/chrisbranson-RedLaserSample-0311fa6/RedLaserSample/Main.cs:28
任何想法可能导致此问题以及如何解决?
【问题讨论】:
-
您是否打算“scanPressed:”(带有参数)?
标签: iphone xcode mono xamarin.ios monodevelop