我现在正在使用 Core-plot 来开发应用程序。
我正在寻找一些触摸事件供用户触摸图表的一个点,
然后它显示价格。
当我查看 CorePlot 网站时,
它有一个应用程序显示我需要什么http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot
I really want to do this function by Core-plot,
i am now using CorePlot 0.4
i want to do the following function
我真的很想要一个触摸事件,它可以显示用户触摸点的指定价格。
非常感谢!!
CorePlot 提供了很多检测用户触摸的方法:
对于地块:
-(void)barPlot:(CPBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index;
-(void)scatterPlot:(CPScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index;
-(void)pieChart:(CPPieChart *)plot sliceWasSelectedAtRecordIndex:(NSUInteger)index;
对于绘图空间:
@protocol CPPlotSpaceDelegate <NSObject>
-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point;
-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceDraggedEvent:(id)event atPoint:(CGPoint)point;
-(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceUpEvent:(id)event atPoint:(CGPoint)point;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)