나는 방금 1 시간의 수업을 탐색하고 있었고 그것을 찾을 수 없다! 나는 AAPLot 프로젝트의 예제를 검색했다.배경색을 설정할 위치는?
그래프를 조금 바꿔서 CPTTradingRangePlot 클래스의 모든 설정을 찾으려고했지만 거기에 있지 않습니다.
내가 변경할 수있는 많은 속성이 있지만 어떤 클래스에서도 배경 설정을 찾을 수 없습니다.
누구든지 내게 힌트를 줄 수 있습니까? 핵심 플롯에서
// OHLC plot
CPTMutableLineStyle *whiteLineStyle = [CPTMutableLineStyle lineStyle];
whiteLineStyle.lineColor = [CPTColor whiteColor];
whiteLineStyle.lineWidth = 1.0f;
CPTTradingRangePlot *ohlcPlot = [[[CPTTradingRangePlot alloc] initWithFrame:graph.bounds] autorelease];
ohlcPlot.identifier = @"OHLC";
ohlcPlot.lineStyle = whiteLineStyle;
ohlcPlot.barWidth = 4.0f;
ohlcPlot.increaseFill = [(CPTFill *)[CPTFill alloc] initWithColor:[CPTColor greenColor]];
ohlcPlot.decreaseFill = [(CPTFill *)[CPTFill alloc] initWithColor:[CPTColor redColor]];
CPTMutableTextStyle *whiteTextStyle = [CPTMutableTextStyle textStyle];
whiteTextStyle.color = [CPTColor whiteColor];
whiteTextStyle.fontSize = 12.0;
ohlcPlot.labelTextStyle = whiteTextStyle;
ohlcPlot.labelOffset = 5.0;
ohlcPlot.stickLength = 2.0f;
ohlcPlot.dataSource = self;
ohlcPlot.plotStyle = CPTTradingRangePlotStyleCandleStick;
[graph addPlot:ohlcPlot];
Chris Hodges 예제와 같이 작동하는 것이 가장 쉽고 쉬운 방법입니다. – Reimius