Hello,I am trying to add a marker on my map but i am getting some warning (code highlighted) and application crashes on buildHere is code
id<AGSLayerView> graphicsLayerView = [self.mapView.mapLayerViews objectForKey:@"GraphicsLayer"];
AGSGraphicsLayer* myGraphicsLayer = (AGSGraphicsLayer*)graphicsLayerView.agsLayer;
//create a marker symbol to be used by our Graphic
AGSSimpleMarkerSymbol *myMarkerSymbol =
[AGSSimpleMarkerSymbol simpleMarkerSymbol];
myMarkerSymbol.color = [UIColor blueColor];
//Create an AGSPoint (which inherits from AGSGeometry) that
//defines where the Graphic will be drawn
AGSPoint* myMarkerPoint =
[AGSPoint pointWithX:-93.2984
y:44.9409
spatialReference:self.mapView.spatialReference];
//Create the Graphic, using the symbol and
//geometry created earlier
AGSGraphic* myGraphic = [AGSGraphic graphicWithGeometry:myMarkerPoint symbol:myMarkerSymbol attributes:nil infoTemplate:nil];
//Add the graphic to the Graphics layer
[myGraphicsLayer addGraphic:myGraphic];
//Tell the layer to redraw itself
[myGraphicsLayer dataChanged];
The warning: AGSGraphics may not respond to '+graphicWithGeometry:symbol:attributes:infoTemplateAm i missing something??? Do i have to include any file/framework??Thanks