Ich aktualisierte xcode heute auf Version 7.3 und plötzlich wirft das Modul mit CorePlot Fehler. "Graph in nicht verfügbar" und "dataSource ist nicht verfügbar". Ich habe seit der Einführung keine Änderungen an diesem Codeabschnitt vorgenommen. Ich habe festgestellt, dass es eine neue Version von CorePlot gibt - wird das helfen oder verletzen?
Code-Snippet:CorePlot-Fehler nach dem Upgrade auf xcode 7.3
//1a - set up the 2 scatter plots - avg expected return for each portfolio
CPTScatterPlot *modelAvgRtnPlot = [[CPTScatterPlot alloc] init];
modelAvgRtnPlot.dataSource = self;
modelAvgRtnPlot.identifier = @"Portfolio A Expected Avg Return";
modelAvgRtnPlot.title = @"Model (A) Average Rtn";
Die modelAvgRtnPlot.dataSource = self;
Zeilen gibt den Compiler-Fehler 'Datasource in nicht verfügbar'
zweite Ausgabe mit 'Graph' - Schnipsel:
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {
// 1 - Is the plot hidden?
if (plot.isHidden == YES) {
return;
}
// 2 - Create style, if necessary
static CPTMutableTextStyle *style = nil;
if (!style) {
style = [CPTMutableTextStyle textStyle];
style.color= [CPTColor darkGrayColor];
style.fontSize = 16.0f;
style.fontName = @"Raleway-Bold";
}
// 3 - Create annotation, if necessary
NSNumber *price = [self numberForPlot:plot field:CPTBarPlotFieldBarTip recordIndex:index];
if (self.priceDeviationAnnotation) {
[plot.graph.plotAreaFrame.plotArea removeAnnotation:self.priceDeviationAnnotation];
self.priceDeviationAnnotation = nil;
}
in den oben genannten, [plot.graph.plotAreaFrame.plotArea...]
ist Geben Sie den Fehler "Grafik ist nicht verfügbar"
gelöscht Kommentar – RegularExpression