CorePlot_0.9 中的 CPTTestApp-ipad 示例

发布于 2025-01-08 06:00:20 字数 2155 浏览 1 评论 0原文

我对核心情节很陌生。我在 CorePlot_0.9 中看到了不同的例子。我尝试运行,但它显示与 shell 相关的错误。然后我创建一个新项目并复制代码。然后它构建成功,但显示错误 Thread 1:Program receive signal:"SIGABRT" in scatterPlotView.hostedGraph = graph;Unknown class CPTGraphHostingView in Interface Builder file。 2012-02-21 09:16:30.336 coreplttest[285:b303] -[UIView setHostedGraph:]:无法识别的选择器发送到实例 0x686e500 2012-02-21 09:16:30.686 coreplttest [285:b303] *** 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UIView setHostedGraph:]:无法识别的选择器发送到实例0x686e500” *** 第一次抛出时的调用堆栈: ( 0 核心基础 0x00fb65a9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x0110a313 objc_异常_抛出 + 44 2 CoreFoundation 0x00fb80bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 3 核心基础 0x00f27966 ___转发___ + 966 4 核心基础 0x00f27522 _CF_forwarding_prep_0 + 50 5 coreplttest 0x00002dd8 -[coreplttestViewController 构造ScatterPlot] + 360 6 coreplttest 0x00002c13 -[coreplttestViewController viewDidLoad] + 99 7 UIKit 0x002b8089 -[UIViewController 视图] + 179 8 UIKit 0x0022bd42 -[UIWindow addRootViewControllerViewIfPossible] + 51 9 coreplttest 0x000028d7 -[coreplttestAppDelegate应用程序:didFinishLaunchingWithOptions:] + 135 10 UIKit 0x00208c89 -[UIApplication _callInitializationDelegatesForURL:有效负载:挂起:] + 1163 11 UIKit 0x0020ad88 -[UIApplication _runWithURL:有效负载:launchOrientation:statusBarStyle:statusBarHidden:] + 439 12 UIKit 0x00215617 - [UIApplicationhandleEvent:withNewEvent:] + 1533 13 UIKit 0x0020dabf -[UIApplication 发送事件:] + 71 14 UIKit 0x00212f2e _UIApplicationHandleEvent + 7576 15 图形服务 0x01afe992 PurpleEventCallback + 1550 16 核心基础 0x00f97944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 17 核心基础 0x00ef7cf7 __CFRunLoopDoSource1 + 215 18 核心基础 0x00ef4f83 __CFRunLoopRun + 979 19 核心基础 0x00ef4840 CFRunLoopRunSpecific + 208 20 核心基础 0x00ef4761 CFRunLoopRunInMode + 97 21 UIKit 0x0020a7d2-[UIApplication_run] + 623 22 UIKit 0x00216c93 UIApplicationMain + 1160 23 coreplttest 0x00002819 主要 + 121 24 coreplttest 0x00002795开始+53 ) 终止调用抛出异常sharedlibrary apply-load-rules all 当前语言:自动;目前objective-c (gdb) 错误是什么?我一次又一次尝试修复,但我不能。请帮助我..

I am very new to core plot. I saw different examples in CorePlot_0.9. I tried to run, but its show errors related to shells. Then I create a new project and copy the code.Then it build successfully, but it shows the error Thread 1:Program received signal:"SIGABRT" in scatterPlotView.hostedGraph = graph;Unknown class CPTGraphHostingView in Interface Builder file.
2012-02-21 09:16:30.336 coreplttest[285:b303] -[UIView setHostedGraph:]: unrecognized selector sent to instance 0x686e500
2012-02-21 09:16:30.686 coreplttest[285:b303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setHostedGraph:]: unrecognized selector sent to instance 0x686e500'
*** Call stack at first throw:
(
0 CoreFoundation 0x00fb65a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0110a313 objc_exception_throw + 44
2 CoreFoundation 0x00fb80bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00f27966 ___forwarding___ + 966
4 CoreFoundation 0x00f27522 _CF_forwarding_prep_0 + 50
5 coreplttest 0x00002dd8 -[coreplttestViewController constructScatterPlot] + 360
6 coreplttest 0x00002c13 -[coreplttestViewController viewDidLoad] + 99
7 UIKit 0x002b8089 -[UIViewController view] + 179
8 UIKit 0x0022bd42 -[UIWindow addRootViewControllerViewIfPossible] + 51
9 coreplttest 0x000028d7 -[coreplttestAppDelegate application:didFinishLaunchingWithOptions:] + 135
10 UIKit 0x00208c89 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
11 UIKit 0x0020ad88 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
12 UIKit 0x00215617 -[UIApplication handleEvent:withNewEvent:] + 1533
13 UIKit 0x0020dabf -[UIApplication sendEvent:] + 71
14 UIKit 0x00212f2e _UIApplicationHandleEvent + 7576
15 GraphicsServices 0x01afe992 PurpleEventCallback + 1550
16 CoreFoundation 0x00f97944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
17 CoreFoundation 0x00ef7cf7 __CFRunLoopDoSource1 + 215
18 CoreFoundation 0x00ef4f83 __CFRunLoopRun + 979
19 CoreFoundation 0x00ef4840 CFRunLoopRunSpecific + 208
20 CoreFoundation 0x00ef4761 CFRunLoopRunInMode + 97
21 UIKit 0x0020a7d2 -[UIApplication _run] + 623
22 UIKit 0x00216c93 UIApplicationMain + 1160
23 coreplttest 0x00002819 main + 121
24 coreplttest 0x00002795 start + 53
)
terminate called throwing an exceptionsharedlibrary apply-load-rules all
Current language: auto; currently objective-c
(gdb)
What is the error ? I tried again and again to fix, but I can't.Please help me..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执笏见 2025-01-15 06:00:20

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

This message is the key: "-[UIView setHostedGraph:]: unrecognized selector". It means the view that you want to use as your hosting view is set up as a UIView, not as a CPTGraphHostingView. Make sure you set the custom class correctly in Interface Builder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文