CorePlot SIGABRT 运行时错误 xcode4
我已经修改了代码 http://www. switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application 在 xcode4 上运行,我有一个视图,我将其放入 ConsoleViewControllor.xib 中,其类为 CPTGraphHostingView。
编译得很好,但是在运行时,我在 line 上得到了一个 SIGABRT HostingView.hostedGraph = 图表;出现错误
* 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UIView setHostedGraph:]:无法识别的选择器发送到实例 0x5910d40” * 第一次抛出时的调用堆栈:
还有其他人遇到过这个问题吗?我非常愿意为您提供代码并回答更多问题。提前致谢!
I've modified the code at http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application to run on xcode4, I have a view that I put into my ConsoleViewControllor.xib with its class as CPTGraphHostingView.
Compiles great, at runtime however, I get a SIGABRT at line
hostingView.hostedGraph = graph; with the error
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setHostedGraph:]: unrecognized selector sent to instance 0x5910d40'
* Call stack at first throw:
Anyone else run into this issue? I'm more than willing to give you code and answer more questions. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
再次检查 .xib 中的设置。 -[UIView setHostedGraph:] 表示 Xcode 创建了
UIView
,而不是CPTGraphHostingView
。Check the setup in your .xib again. -[UIView setHostedGraph:] means that Xcode created a
UIView
, not aCPTGraphHostingView
.