I am trying to query all the features from my database through a querytask, but no delegate methods are being invoked.

@interface MyClass : NSObject <AGSQueryTaskDelegate>

I created a strong property AGSQueryTask :

@property(nonatomic, strong)AGSQueryTask* queryTask;

set the delegate as self:

self.queryTask.delegate = self;

but nothing happens. Ideas?

有帮助吗?

解决方案

I made a silly mistake, because of an uncommented line of code, my querytask got deallocated even before it could call the delegate method.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top