Ios 如何在corePlote中制作圆形图例?

Ios 如何在corePlote中制作圆形图例?,ios,iphone,core-plot,Ios,Iphone,Core Plot,我搜索了这个问题,但没有得到适当的答案 在我的应用程序中,我正在使用CorePlote绘制图形和图表。 我试图将饼图图例自定义为圆形,但没有找到任何方法或属性 有人知道这件事吗 您可以使用半径的cornerRadius属性。 尝试下面的代码,我希望我会有所帮助 theLegend.cornerRadius = [theLegend.bounds.size.width/2]; 此处的legend是CPTLegend的对象,您可以使用radius的cornerRadius属性。 尝试下面的代码,我

我搜索了这个问题,但没有得到适当的答案

在我的应用程序中,我正在使用CorePlote绘制图形和图表。 我试图将饼图图例自定义为圆形,但没有找到任何方法或属性


有人知道这件事吗

您可以使用半径的cornerRadius属性。
尝试下面的代码,我希望我会有所帮助

theLegend.cornerRadius = [theLegend.bounds.size.width/2];

此处的
legend
CPTLegend

的对象,您可以使用radius的cornerRadius属性。
尝试下面的代码,我希望我会有所帮助

theLegend.cornerRadius = [theLegend.bounds.size.width/2];

这里的
legend
CPTLegend

的对象,您检查过这个吗chttps://code.google.com/p/core-plot/issues/detail?id=90did 你检查过这个吗chttps://code.google.com/p/core-plot/issues/detail?id=90