AGSCredential* cred = [[AGSCredential alloc] initWithUser:@mydomain\myusername password:@mypassword]; //pass the credential to layer or task AGSDynamicMapServiceLayer *thelayer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL:[NSURL URLWithString:@"https://myServer.com/ArcGIS/rest/services/DynamicLayerName/MapServer"] credential:cred ]; [self.myMapView addMapLayer:thelayer withName:@Layer Name];
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.