我正在尝试在我的 iOS 应用程序中使用 Core Plot 中的散点图。我按照 Core Plot wiki 的说明设置了 Core Plot,然后将 PlotItem.h/m、PlotGallery.h/m 和 SimpleScatterPlot.h/m 从包含的 Plot Gallery 项目复制到我的项目中。编码
CPTTheme *theme = [CPTTheme themeNamed:kCPTDarkGradientTheme];
SimpleScatterPlot *scatterPlot = [[SimpleScatterPlot alloc]init];
[scatterPlot generateData];
[scatterPlot renderInLayer:hostView withTheme:theme];
运行,图形视图显示在我的应用程序中。但是我不能像在 Plot Gallery 项目中那样移动图形视图或点击绘图点。我该如何正确设置?