Getting map to show up in sample app

Getting map to show up in sample app

I've been experimenting with the My First iOS app example, trying to get it to display a Bing map layer I created on  However, the layer doesn't display.  In the sample app's code, when it says:
NSURL *mapUrl = [NSURL URLWithString:@""];
 AGSTiledMapServiceLayer *tiledLyr = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
 [self.mapView addMapLayer:tiledLyr withName:@"Tiled Layer"];

what am I supposed to replace the mapUrl from?  The link created through the share function on doesn't work, since it links directly to a map viewer displaying the map.  I'd like to get the map directly to put into my sample iOS app.


Answer 1:

It appears to me that your problem is more with the licensing that finding the correct REST endpoint: , particularly the bit about ArcGIS Web Mapping.