NSArray* mapLayerNamesArray = self.mapView.mapLayerNames;

1052
2
01-26-2010 07:34 AM
ChanceYohman
New Contributor
Putting the above line in at the end of mapViewDidLoad of the  GraphicsDemoViewController class of the Graphics Demo sample causes a compilation error & warning:

/Users/kmonroe/Library/SDKs/Samples/GraphicsDemo/Classes/GraphicsDemoViewController.m:160: error: request for member 'mapLayerNames' in something not a structure or union

/Users/kmonroe/Library/SDKs/Samples/GraphicsDemo/Classes/GraphicsDemoViewController.m:160: warning: unused variable 'mapLayerNamesArray'

Am I doing something wrong, or is this sample code meant for a newer release of the SDK? Code is attached.
0 Kudos
2 Replies
MarkDostal
Esri Contributor
You are correct in your assumption that the sample code was written with a newer version of the SDK.  I'm sorry for the confusion.  We'll get out a new version as soon as we can.

-Mark
0 Kudos
ChanceYohman
New Contributor
Thanks Mark. I look fwd to it.
0 Kudos