@interface MyClass : NSObject <AGSQueryTaskDelegate>
@property(nonatomic, strong)AGSQueryTask* queryTask;
self.queryTask.delegate = self;
Solved! Go to Solution.
//alongside your agsquerytask set up an agsquery @property(nonatomic, strong)AGSQueryTask* queryTask; @property(nonatomic, strong)AGSQuery* query;
//set up query task self.queryTask = [AGSQueryTask queryTaskWithURL:[NSURL URLWithString: "your URL"]]; self.queryTask.delegate = self; //set up query and options self.query = [AGSQuery query]; self.query.outFields = [NSArray arrayWithObjects: "*", nil]; self.query.where = @"1=1"; //execute querytask with query [self.queryTask executeWithQuery: self.query];