Confirm FeatureService Map Service added to Map

Discussion created by wherewhy on Aug 30, 2011
Latest reply on Aug 30, 2011 by wherewhy
If I am dynamically adding a FeatureService Map Service to a mapView, how can I confirm that it loaded successfully?

        NSURL* url = [NSURL URLWithString: featureLayerURL];
        self.featureLayer = [AGSFeatureLayer featureServiceLayerWithURL: url mode: AGSFeatureLayerModeOnDemand];
        [self.mapView addMapLayer:self.featureLayer withName:@"featureLayer"];

During debugging, stepping through the code at runtime, I cannot find anything that is instantiated that I can check right after or before "addMapLayer"

Is there a way that i can verify that self.featureLayer is valid after assigning it the featureServiceLayerWithURL?