laptop and a wrench

Bogue

User request for getting the actual description and serviceDescription properties from the AGSMapServiceInfo class.

Dernière publication: December 19, 2015 ArcGIS Runtime SDK
Numéro d’ID de bogue NIM070102
EnvoiJune 29, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS Runtime SDK
Version trouvéeOther
Version de correction10.2
StatutFixed

Solution de contournement

To fetch both the values without using the AGSMapServiceInfo class, follow this workaround:NSURL *url1= [NSURL URLWithString:@"<a href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/MapServer?f=json" target="_blank">http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/MapServer?f=json</a>"]; NSString *loc = [[[NSString alloc] initWithContentsOfURL:url1] autorelease]; SBJsonParser *parser = [[SBJsonParser alloc] init];NSDictionary *json = [parser objectWithString:loc]; NSLog(@"description:%@", [json valueForKey:@"description"]); //prints descriptionNSLog(@"service description:%@", [json valueForKey:@"serviceDescription"]); //prints service //description

Étapes pour reproduire

ID de bogue: NIM070102

Logiciel:

  • ArcGIS Runtime SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement