Could I see a snippet of how this is done?
I've tried this:
AGSDynamicMapServiceLayer* layer = [[AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL:[NSURL URLWithString:kWaterNetworkURL]] retain];
layer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:0], [NSNumber numberWithInt:1], [NSNumber numberWithInt:2], [NSNumber numberWithInt:3], [NSNumber numberWithInt:4], [NSNumber numberWithInt:5], nil];
AGSMapServiceInfo* msi = ((AGSDynamicMapServiceLayer*)layer).mapServiceInfo;
NSLog(@"Tables belonging to service with 6 layers and 4 tables");
for (int i=0; i < [msi.tableInfos count]; i++) {
AGSMapServiceTableInfo* ti = [msi.tableInfos objectAtIndex:i];
NSLog(@"%d: %@", i, ti.name);
}
[self.mapView addMapLayer:layer withName:layer.name];
No tables are listed.