1
在我CorePlot實現我有一個網格線樣式,看起來像這樣:自定義CorePlot gridLineStyle
我實現它那樣簡單:
CPTMutableLineStyle *gridLineStyle = [CPTMutableLineStyle lineStyle];
gridLineStyle.lineColor = [CPTColor grayColor];
gridLineStyle.lineWidth = 0.6f;
我想什麼但看起來是這樣的線條樣式:
任何想法如何自定義CPTMutableLineStyle
使我的線是這樣的? CorePlot在CorePlotExamples示例項目中沒有找到類似的東西。謝謝。
令人驚歎!救了我!我這樣做:'CPTMutableLineStyle * gridLineStyle = [CPTMutableLineStyle lineStyle]; gridLineStyle.lineColor = [CPTColor grayColor]; gridLineStyle.dashPattern = [NSArray arrayWithObjects:[NSNumber numberWithInteger:1],[NSNumber numberWithInteger:5],nil]; gridLineStyle.lineWidth = 0.3f;' – 2013-03-07 11:49:23