1

gridLinesの単純な点線を取得しようとしていますが、機能しません(現在はブロック実線です)。これについてはインターネット上ではあまり役に立ちません!

   CPTMutableLineStyle *gridLineStyle = [CPTMutableLineStyle lineStyle];
        gridLineStyle.lineColor = [self axisGreyClr];
        //gridLineStyle.lineWidth = 1.0f;
        gridLineStyle.dashPattern = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.8f], nil];
        gridLineStyle.patternPhase=0.0f;
4

2 に答える 2

5
于 2012-11-14T00:33:12.197 に答える
5

What Eric said above ,Code to get the Dashed Line

CPTMutableLineStyle *gridLineStyle = [CPTMutableLineStyle lineStyle];

gridLineStyle.dashPattern=[NSArray arrayWithObjects:[NSDecimalNumber numberWithInt:1],[NSDecimalNumber numberWithInt:2],[NSDecimalNumber numberWithInt:3],[NSDecimalNumber numberWithInt:4],[NSDecimalNumber numberWithInt:5],[NSDecimalNumber numberWithInt:6],[NSDecimalNumber numberWithInt:7],[NSDecimalNumber numberWithInt:8],nil];
于 2013-01-30T06:11:19.987 に答える