You should adopt AGSLayerDelegate protocol, set layer's delegate to the class where you adopted the protocol and then try to listen to the methods, layerDidLoad: and layer:didFailToLoadWithError: to catch whether the layer is loaded successfully or there is any error.
Regards,
Nimesh