AnsweredAssumed Answered

AGSGDBFeatureServiceTable loaded but has no features

Question asked by bt_kdunaway on Apr 7, 2015
Latest reply on Apr 16, 2015 by SBaskaran-esristaff

When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero.

 

AGSGDBFeatureServiceTable.loaded is YES.

 

Any ideas?

 

Code:

 

self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential 
spacialReference:self.mapView.spatialRefernece];

self.fServiceTable.loadCompletion = ^(NSError *error) {
     NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount);
};

Outcomes