Getting ArcGIS.com-created map to show up in sample app

Discussion created by apocryphon on Nov 3, 2010
Latest reply on Nov 23, 2010 by DGoyal-esristaff
Hey all,

I've been experimenting with the My First iOS app example, trying to get it to display a Bing map layer I created on ArcGIS.com.  However, the layer doesn't display.  In the sample app's code, when it says:

 NSURL *mapUrl = [NSURL URLWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"];
 AGSTiledMapServiceLayer *tiledLyr = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
 [self.mapView addMapLayer:tiledLyr withName:@"Tiled Layer"];

what am I supposed to replace the mapUrl from?  The bit.ly link created through the share function on ArcGIS.com 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.