1

donutchart のような 2 つの円グラフ プロットでグラフを作成します。最初は「pieChart」、2 番目は「centerDonut」です。

centerDonut にはスライスが 1 つだけあり、色は白、値は 1 です。

ユーザーが「pieChart」のスライスを押すと、適切なインデックスでうまく機能します。ユーザーが「centerDonut」のスライスを押すと、メソッドは「centerDonut」ではなく「pieChart」のインスタンスを返します。

なぜそれが起こるのですか?で試してみますが、うまくいき[self.centerDonut zPosition:1]ません。

-(void)initPlot {
[self configureHost];
[self configureGraph];
 //in configureChart I configure and add the pieChart and then the centerDonuts
[self configureChart];
 //I have 2 label in storyboard over the graph, set value of them and display.
[self totLabelsOverAll];
}
4

1 に答える 1