CorePlot - CPTAnnotation.h not found

一曲冷凌霜 提交于 2020-01-06 07:58:54

问题


I'm trying to use CorePlot to draw a simple plot.

I'm working from this tutorial, but when I type this in my ViewController.h:

<CPPlotDataSource>
{
   CPXYGraph *graph;
}    

I encounter an error: CPTAnnotation.h file not found

What might be the cause?


回答1:


The Core Plot class prefix has changed from "CP" to "CPT" since that tutorial was written. If you're using anything later than Core Plot 0.3, you'll need to make the change in your code, too. There are several other needed changes that are discussed in the comments on that post.



来源:https://stackoverflow.com/questions/8391437/coreplot-cptannotation-h-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!