#pragma mark CPTPlotSpaceDelegate
-(BOOL)plotSpace:(CPTPlotSpace *)space shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point
{
NSDecimal ppdecimal[2];
CGPoint ptAtPlotArea = CGPointMake(point.x - (graph.plotAreaFrame.frame.origin.x + graph.plotAreaFrame.plotArea.frame.origin.x), point.y - (graph.plotAreaFrame.frame.origin.y + graph.plotAreaFrame.plotArea.frame.origin.y));
[space plotPoint:ppdecimal forPlotAreaViewPoint:ptAtPlotArea];
NSDecimal xxxx = ppdecimal[0];
NSDecimal yyyy = ppdecimal[1];
NSLog(@"the place clicek is (%@,%@)",CPTDecimalStringValue(xxxx), CPTDecimalStringValue(yyyy));
return YES;
}

3486

被折叠的 条评论
为什么被折叠?



