Core plot 如何从CGPoint得到y轴的值

Core plot 如何从CGPoint得到y轴的值,core-plot,Core Plot,我是中国人,我的英语很差,这是我的第一个问题 这是我的密码 - (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可以获取它,或者我必须自己计算它 等待你的回答 我觉得你非常喜欢使用

我是中国人,我的英语很差,这是我的第一个问题 这是我的密码

- (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可以获取它,或者我必须自己计算它

等待你的回答 我觉得你非常喜欢使用绘图空间:

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

此方法调用后,
dataPoint[cptcoordination]
将保存x值,
dataPoint[cptcoordination]
将保存y值

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