Y 축에 10 개의 메이저 틱만 가져 오려고합니다. 그 때문에 나는 방법 preferredNumberOfMajorTicks = 10
을 사용하고 있습니다. Core-Plot - preferredNumberOfMajorTicks는 틱의 수를 제한하지 않습니다.
하지만 스크린 샷에서 볼 수 있듯이, 정말 작동하지 않습니다
는 ... 여기 는 y 축에 대한 내 구성입니다 :CPTXYAxis *y = axisSet.yAxis;
y.labelingPolicy = CPTAxisLabelingPolicyFixedInterval;
//y.majorIntervalLength = CPTDecimalFromDouble(2);
y.preferredNumberOfMajorTicks = 10;
y.minorTicksPerInterval = 5;
y.tickDirection = CPTSignNone;
y.majorTickLineStyle = majorLineStyle;
y.minorTickLineStyle = minorLineStyle;
y.axisLineStyle = majorLineStyle;
y.majorTickLength = 7.0;
y.minorTickLength = 5.0;
y.labelTextStyle = whiteTextStyle;
y.minorTickLabelTextStyle = minorTickBlackTextStyle;
y.titleTextStyle = whiteTextStyle;
y.axisConstraints = [CPTConstraints constraintWithLowerOffset:40.0];
뭔가해야 이상 오른쪽 methode preferredNumberOfMajorTicks = 10
그러나 나는 무엇을 볼 수 없습니다 ...
그것은 해결책이었습니다. 지금은 분명합니다. 빠른 답변 주셔서 감사합니다. Eric –