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.