Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 自定义数据标签在CPTBarPlot中的位置_Ios_Core Plot - Fatal编程技术网

Ios 自定义数据标签在CPTBarPlot中的位置

Ios 自定义数据标签在CPTBarPlot中的位置,ios,core-plot,Ios,Core Plot,我正试图通过核心情节实现类似的效果: 我能够画水平条和边框,但我不知道如何定位数据标签。 我应该用吗 -(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index ? 谢谢 您可以为此使用注释。使用CPTTextLayer制作每个标签。设置每个标签定位点和位置,使它们保持在正确的条旁边。谢谢Eric,我不知道注释。我终于能够在这张照片中得到结果。但是,我发现将注释正确放置到像素有点困难。

我正试图通过核心情节实现类似的效果:

我能够画水平条和边框,但我不知道如何定位数据标签。 我应该用吗

-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index
?


谢谢

您可以为此使用注释。使用
CPTTextLayer
制作每个标签。设置每个标签定位点和位置,使它们保持在正确的条旁边。

谢谢Eric,我不知道注释。我终于能够在这张照片中得到结果。但是,我发现将注释正确放置到像素有点困难。