cyohman

NSArray* mapLayerNamesArray = self.mapView.mapLayerNames;

Discussion created by cyohman on Jan 26, 2010
Latest reply on Feb 3, 2010 by cyohman
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.

Attachments

Outcomes