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];
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.