2013-06-05 119 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

非常感谢你 –