CorePlot_0.9中的CPTTestap ipad示例

CorePlot_0.9中的CPTTestap ipad示例,ipad,core-plot,sigabrt,Ipad,Core Plot,Sigabrt,我对核心情节很陌生。我在CorePlot_0.9中看到了不同的示例。我试图运行,但它显示与shell相关的错误。然后我创建一个新项目并复制代码。然后它成功构建,但它显示了错误线程1:程序接收信号:scatterPlotView.hostedGraph=graph中的“SIGABRT”接口生成器文件中的未知类CPTGraphHostingView。 2012-02-21 09:16:30.336 CorepletTest[285:b303]-[UIView setHostedGraph:]:发送到

我对核心情节很陌生。我在CorePlot_0.9中看到了不同的示例。我试图运行,但它显示与shell相关的错误。然后我创建一个新项目并复制代码。然后它成功构建,但它显示了错误线程1:程序接收信号:scatterPlotView.hostedGraph=graph中的“SIGABRT”<代码>接口生成器文件中的未知类CPTGraphHostingView。 2012-02-21 09:16:30.336 CorepletTest[285:b303]-[UIView setHostedGraph:]:发送到实例0x686e500的无法识别的选择器 2012-02-21 09:16:30.686 CorepletTest[285:b303]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UIView setHostedGraph:::]:无法识别的选择器发送到实例0x686e500' ***第一次抛出时调用堆栈: ( 0 CoreFoundation 0x00fb65a9例外预处理+185 1 libobjc.A.dylib 0x0110313 objc_异常_抛出+44 2 CoreFoundation 0x00fb80bb-[NSObject(NSObject)不识别选择器:+187 3 CoreFoundation 0x00f27966 uuuuuuuuuuuuuuuuuuuuu+966 4 CoreFoundation 0x00f27522\u CF\u转发\u准备\u 0+50 5 CorepletTest 0x00002dd8-[CorepletTestViewController结构散点图]+360 6 CorepletTest 0x00002c13-[CorepletTestViewController viewDidLoad]+99 7 UIKit 0x002b8089-[UIViewController视图]+179 8 UIKit 0x0022bd42-[UIWindow AddRootViewControllerServiceWifPossible]+51 9 coreplttest 0x000028d7-[coreplttestAppDelegate应用程序:didFinishLaunchingWithOptions:+135 10 UIKit 0x00208c89-[UIApplication\u CallInitializationDelegatesForRL:有效负载:挂起:][1163 11 UIKit 0x0020ad88-[UIApplication\u运行时URL:payload:launchOrientation:statusBarStyle:statusBarHidden:+439 12 UIKit 0x00215617-[UIApplication handleEvent:withNewEvent:][1533 13 UIKit 0x0020dabf-[UIApplication sendEvent:+71 14 UIKit 0x002F2E应用手柄+7576 15个图形服务0x01afe992 PurpleEventCallback+1550 16 CoreFoundation 0x00f97944 \uuuuu CFRUNLOOP\u正在调用\uu OUT\uu以执行\uu函数\uuuu+52 17 CoreFoundation 0x00ef7cf7\uuu CFRunLoopDoSource1+215 18 CoreFoundation 0x00ef4f83 _ucfrunlooprun+979 19 CoreFoundation 0x00ef4840 CFRunLoopRunSpecific+208 20 CoreFoundation 0x00ef4761 CFRUNLOOPSRUNINMODE+97 21 UIKit 0x0020a7d2-[UIU应用程序运行]+623 22 UIKit 0x00216c93 UIApplicationMain+1160 23芯测试0x00002819主+121 24芯测试0x00002795开始+53 ) 终止调用引发exceptionsharedlibrary应用加载规则所有 当前语言:自动;当前目标-c
(gdb)错误是什么?我一次又一次地尝试修复,但无法修复。请帮助我。

此消息是关键:“-[UIView setHostedGraph::无法识别的选择器”。这意味着要用作宿主视图的视图设置为
UIView
,而不是
CPTGraphHostingView
。确保在Interface Builder中正确设置自定义类。

我检查了它,它是CPTGraphHostingView。