Ios8 Coreplot y轴标签问题

Ios8 Coreplot y轴标签问题,ios8,core-plot,scatter-plot,ios7.1,xcode-6.2,Ios8,Core Plot,Scatter Plot,Ios7.1,Xcode 6.2,我刚刚将core plot从1.2升级到1.6。y轴上的标签在iOS 8中拧紧。当为目标7.1运行相同的项目时,效果很好。 有人有同样的问题吗 y.majorIntervalLength为150和 plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0.f) length:CPTDecimalFromFloat(2000.f)]; [![在此处输入图像说明][1][1][![在此处输入图像说明][

我刚刚将core plot从1.2升级到1.6。y轴上的标签在iOS 8中拧紧。当为目标7.1运行相同的项目时,效果很好。 有人有同样的问题吗

y.majorIntervalLength为150和

plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0.f) length:CPTDecimalFromFloat(2000.f)];
[![在此处输入图像说明][1][1][![在此处输入图像说明][2][2]

图8.2。图7.1

// Axes config code
CPTXYAxisSet *axisSet = (CPTXYAxisSet *)_graph.axisSet;
CPTXYAxis *x = axisSet.xAxis;
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
dateFormatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0];
dateFormatter.dateStyle = kCFDateFormatterShortStyle;
CPTTimeFormatter *timeFormatter = [[CPTTimeFormatter alloc] initWithDateFormatter:dateFormatter];
timeFormatter.referenceDate = _startDate;
x.labelFormatter = timeFormatter;
x.labelTextStyle = textStyle;
x.majorIntervalLength = CPTDecimalFromFloat(DT_ONE_DAY*3);
x.minorTicksPerInterval = 2;

CPTXYAxis *y = axisSet.yAxis;
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
numberFormatter.maximumSignificantDigits = 0;
y.labelFormatter = numberFormatter;
y.labelTextStyle = textStyle;
y.majorIntervalLength = CPTDecimalFromString(@"150");
y.minorTicksPerInterval = 1;

这看起来像是labelFormatter的问题。它是如何配置的?用我正在使用的代码更新了原始帖子。@EricSkroch是的,你是对的。发现numberFormatter.maximumSignificantDigits=0;这就是问题的根源。将该行代码替换为numberFormatter.setNumberStyle=NSNumberFormatterNoStyle;它就像一个符咒。谢谢你指出正确的方向。