An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled). A cached map service contains pregenerated map tiles. The number and content of these map tiles are defined by the service's tiling scheme and the map document on which the service is based. The tiling scheme essentially specifies parameters such as tile dimensions, image format, scale levels, and so on. As you navigate the map, the layer fetches new map tiles to be displayed.
Unlike a dynamic layer, a tiled layer's spatial reference must match the map's spatial reference. This is necessary because tiled layers display map tiles that are pregenerated ahead of time and cannot be reprojected to match a different spatial reference.
To instantiate an AGSTiledMapServiceLayer, you
need to provide a URL to a map service's REST web service endpoint.
NSURL* url = [NSURL URLWithString: @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"];
AGSTiledMapServiceLayer* layer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL: url];
The AGSTiledMapServiceLayer will not work with map services that are not cached. You can verify that the service is cached by checking that the Single Fused Map Cache property is set to true in the Map Services Directory.
After creating the layer, you can add it to the map to display its contents. When the layer is ready, its loaded property will be enabled.
You can then safely access its properties.
NSLog(@"Tiling Scheme: %@", layer.tileInfo);
Unlike with ArcGIS Dynamic Map Service layers, you cannot modify properties of an ArcGIS Tiled Map Service layer to alter map contents. This is because the layer relies on a cached map service that does not create map images on the fly like a dynamic Map Service.