获取应用程序中的漏洞更新
URL 已复制
共享 URL
漏洞
User request for getting the actual description and serviceDescription properties from the AGSMapServiceInfo class.
上次发布: December 19, 2015
ArcGIS Runtime SDK
漏洞 ID 编号
NIM070102
已提交
June 29, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
Other
修正版本
10.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
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
重现步骤
漏洞 ID: NIM070102
软件:
ArcGIS Runtime SDK
当漏洞状态发生变化时获得通知
下载 Esri 支持应用程序
发现关于本主题的更多内容
Esri Community
搜索相关信息
Training
查找与此主题相关的培训
ArcGIS Ideas
探索想法并提供反馈
获取来自 ArcGIS 专家的帮助
联系技术支持部门
下载 Esri 支持应用程序
转至下载选项