nul*_*cgo 4 iphone charts core-plot
我现在正在使用Core-plot来开发应用程序.我正在寻找一些触摸事件,用户触摸图表的一个点,然后它显示价格.
当我看一下CorePlot网站时,它有一个应用程序显示我需要的内容 http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot

我真的想通过Core-plot来做这个功能,我现在正在使用CorePlot 0.4我想做以下功能


我真的想要一个触摸事件,它可以显示点用户触摸的指定价格.
非常感谢你!!
CorePlot提供了许多检测用户触摸的方法:
对于情节:
-(void)barPlot:(CPBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index;
-(void)scatterPlot:(CPScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index;
-(void)pieChart:(CPPieChart *)plot sliceWasSelectedAtRecordIndex:(NSUInteger)index;
Run Code Online (Sandbox Code Playgroud)
对于绘图空间:
@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;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2848 次 |
| 最近记录: |