本文介绍了CorePlot - 未找到CPTAnnotation.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用绘制一个简单的情节。

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

我正在使用,但是当我在 ViewController.h中输入

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

<CPPlotDataSource>
{
   CPXYGraph *graph;
}

我遇到错误: CPTAnnotation.h文件没有发现

可能是什么原因?

推荐答案

自编写该教程以来,Core Plot类前缀已从CP更改为CPT。如果您在Core Plot 0.3之后使用任何内容,则还需要对代码进行更改。该帖子的评论中还讨论了其他一些必要的更改。

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.

这篇关于CorePlot - 未找到CPTAnnotation.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-30 12:51