Reputation: 41
I'm a newbie in Xcode, I need help in debugging an existing code written in older version Xcode and coreplot. I'm currently using Xcode 7.0 and coreplot 2.0. I'm getting error message
Sending
NSDecimal
to parameter of incompatible typeNSNumber * _Nonnull
at the following code:
thePlotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromInteger([xArray count]+1+1)];
thePlotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromFloat(countGraphNames+1)];
Upvotes: 4
Views: 734
Reputation: 3567
You need to upgrade to CorePlot 2.x and change the call CPTDecimalFromFloat
to [NSNumber numberWithFloat:0]
.
Upvotes: 6