NSAssert
クラスのCorePlotのpositionForLowerBound:lowerBound upperBound:
メソッドで例外が発生していますCPTConstraintsFixed.m
:
[_CPTConstraintsFixed positionForLowerBound:upperBound:]、/ Users / AR / Downloads / core-plot / framework / Source / _CPTConstraintsFixed.m:79
クラッシュは、アサーションを含むコード行で発生しますlowerBound must be less than or equal to upperBound
。
これは私のスタックトレースです:
次の設定で棒グラフを使用しています。
x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
relativePlotSpace.xRange = [CPTPlotRange
plotRangeWithLocation:CPTDecimalFromDouble(xAxisStart)
length:CPTDecimalFromDouble(xAxisLength)];
私が提供している値xAxisLength = 6
とxAxisStart = -0.5
。
このエラーの原因について何か提案はありますか?
ありがとうございました!