This is the code block that causes the app to freeze up. Maybe will help see where my problem lies.
Thanks for any help, much appreciated.
self.geodatabaseTask.loadCompletion = ^(NSError* error) {
for (AGSMapServiceLayerInfo* info in self.geodatabaseTask.featureServiceInfo.layerInfos) {
NSURL* url = [self.geodatabaseTask.URL URLByAppendingPathComponent:[NSString stringWithFormat:@"%lu",(unsigned long)info.layerId]];
AGSGDBFeatureServiceTable* fst = [[AGSGDBFeatureServiceTable alloc]initWithServiceURL:url
credential:self.credentials
spatialReference:mapView.spatialReference];
AGSFeatureTableLayer *f = [[AGSFeatureTableLayer alloc]initWithFeatureTable:fst];
f.delegate = self;
fst.loadCompletion = ^(NSError* error) {
[mapView addMapLayer:f];
};
}
}
};