问题
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