smkang

Xcode could not locate source file: AGSQueryTask.m

Discussion created by smkang on Jul 8, 2010
Latest reply on Jul 9, 2010 by njarecha-esristaff
self.CCTV_QueryTask = [AGSQueryTask queryTaskWithURL:[NSURL URLWithString:@"<SERVER>"]];
self.CCTV_QueryTask.delegate = self;

AGSQuery *infoQuery = [AGSQuery query];
infoQuery.where = @"CITY_NM like '%'";
infoQuery.outFields = [NSArray arrayWithObject:@"*"];

[self.CCTV_QueryTask executeWithQuery:infoQuery];


--------------------------------------------------------------------------------------------------------------

#pragma mark AGSQueryTaskDelegate

//when query is executed ....
- (void)queryTask:(AGSQueryTask *)queryTask didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet {

NSLog(@"query is excuted");
AGSSimpleFillSymbol *fillSymbol = [AGSSimpleFillSymbol simpleFillSymbol];
fillSymbol.color = [[UIColor blackColor] colorWithAlphaComponent:0.25];
fillSymbol.outline.color = [UIColor darkGrayColor];

...
}
--------------------------------------------------------------------------------------------------------------

doesn't excute QueryTask.

Xcode could not locate source file: AGSQueryTask.m

Using the newest version of the ESRI iOS SDK.

Outcomes