Xamarin.ios 滚动Tableview会使基于Monotouch的iOS应用程序崩溃

Xamarin.ios 滚动Tableview会使基于Monotouch的iOS应用程序崩溃,xamarin.ios,monodevelop,xamarin,Xamarin.ios,Monodevelop,Xamarin,您好,我现在正在使用Monotouch开发一个自定义的基于单元格的tableview 表视图在自定义单元格中正确显示数据 但当我试图滚动表格视图时,它正在使应用程序崩溃 错误消息:- MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[__NSCFSet tableView:cellForRowAtIndexPat

您好,我现在正在使用Monotouch开发一个自定义的基于单元格的tableview

表视图在自定义单元格中正确显示数据

但当我试图滚动表格视图时,它正在使应用程序崩溃

错误消息:-

MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. 

 Name: NSInvalidArgumentException Reason:
 -[__NSCFSet tableView:cellForRowAtIndexPath:]: unrecognized selector sent to instance 0xfd50430
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at OrderManagementSystem.Application.Main (System.String[] args) [0x00000] in /Users/administrator/Documents/xyz/dlds/OMS/OMS/Main.cs:17
此外,即使启用了断点,我也无法捕获正在崩溃的方法


如何解决此问题?

除了代码外,您能否告诉我们正在使用哪个版本的iOS?它只在模拟器、设备或两者上吗?看起来tableview数据源变得一团糟了-看一看/张贴在这里。