2013-06-05 36 views
0

我是中國人獲得y軸的值,我的英語很差,這是我的第一個問題 這裏是我的代碼如何從CGPoint

- (BOOL)plotSpace:(CPTPlotSpace *)space shouldHandlePointingDeviceDownEvent:(UIEvent *)event atPoint:(CGPoint)point 
{ 
//i want get the value of y-axis or x-axis from the point! 
{ 

在那裏有API來獲取,或我必須用自己

等待你的答案算什麼 很想你

回答

0

使用佔用空間:

NSDecimal dataPoint[2]; 
[space plotPoint:dataPoint forEvent:event]; 

double dataPoint[2]; 
[space doublePrecisionPlotPoint:dataPoint forEvent:event]; 

此方法調用後,dataPoint[CPTCoordinateX]將持有的x值和dataPoint[CPTCoordinateY]將持有的y值。

+0

非常感謝你 –

+0

非常感謝你 –