如何在ios上观察core plot中的触摸事件?

如何在ios上观察core plot中的触摸事件?,ios,core-plot,Ios,Core Plot,我将此代码添加到graphViewController中: -(BOOL)pointingDeviceDownEvent:(id)event atPoint:(CGPoint)interactionPoint { NSLog(@"Touched."); } 但它不是一触即发。我做错了什么?我正在使用CPPlotSpaceDelegate协议在ios上接收触摸 为defaultPlotSpace设置代理后,当收到触摸时,将使用以下方法调用您 -(BOOL)plotSpace:(CPPlo

我将此代码添加到graphViewController中:

-(BOOL)pointingDeviceDownEvent:(id)event atPoint:(CGPoint)interactionPoint {
    NSLog(@"Touched.");
}

但它不是一触即发。我做错了什么?

我正在使用CPPlotSpaceDelegate协议在ios上接收触摸

为defaultPlotSpace设置代理后,当收到触摸时,将使用以下方法调用您

-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceUpEvent:(id)event atPoint:(CGPoint)point;

-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceCancelledEvent:(id)event;

-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point;

-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceDraggedEvent:(id)event atPoint:(CGPoint)point;

pointingDeviceDownEvent
听起来像是MacOSX上的东西,我不记得是IOS上的。我很可能错了。