我試圖運行一些代碼,當用戶點擊(或觸摸)plotyymbol mye graph創建與核心劇情。在CorePlot中觸摸plotSymbol
這不會散點圖工作:
-(void)scatterPlot:(CPScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex: (NSUInteger)index
{
NSLog(@"plotSymbolWasSelectedAtRecordIndex %d", index);
}
但這個效果很好,當我使用barPlot:
-(void)barPlot:(CPBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index
{
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
什麼是從我的嘗試失蹤捕捉當用戶點擊或觸摸我散點圖?
你好我也試圖把這個功能集成到我的代碼中,但是當我添加這個方法時它甚至沒有被調用,當我們點擊barplot時。請解釋清楚,關於這種方法的提前實現.thx ... – ravoorinandan 2011-03-29 09:24:57