2011-08-04 45 views
0

我修改了代码http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application以在xcode4上运行,我有一种观点,即将其类作为CPTGraphHostingView放入我的ConsoleViewControllor.xib中。CorePlot SIGABRT运行时错误xcode4

编译好,在运行时,但是,我得到一个SIGABRT在线 hostingView.hostedGraph =图;与错误

*终止应用程序由于未捕获的异常 'NSInvalidArgumentException',原因是: ' - [UIView的setHostedGraph:]:无法识别的选择发送到实例0x5910d40' *调用堆栈在第一掷:

任何人否则遇到这个问题?我非常乐意为您提供代码并回答更多问题。提前致谢!

回答

1

再次检查.xib中的设置。 - [UIView setHostedGraph:]意味着Xcode创建了一个UIView而不是CPTGraphHostingView

+0

这完全解决了我的问题:http://stackoverflow.com/questions/5038539/error-uiview-sethostedgraph-unrecognized-selector-while-executing-the-cor – mondousage