Dynamic Populating list of available Layers?????

Discussion created by jpapirti on Jun 23, 2011
Latest reply on Jul 7, 2011 by njarecha-esristaff
Hi All,

I have created applications in the past by hard coding an NSArray of available layers that my company currently serves in our MapServices, but the services are constantly changing and layers are added or removed constantly within the map service.

I have looked at trying to access the mapLayers function to return an array of available layers in the service but have not had any luck.

So in Summary I am looking to:
Create Dynamic List of Layers to display in a UITableView

I am not sure if JSON is the correct route, or if there is an alternative.  Any suggestions or hints on the direction to follow would be appreciated.