This is a simple question. For an iOS app, I display several maps. Occasionally, a mapping service may not be available. Using the ESRI sample code, I'm passing the URL to the layer object like this:
It appears as though if the map service is not working, the code still returns a map layer, but it's empty. The code doesn't raise an exception. So my question is how should I be checking for cases where a service is down? Is there a specific property that I can check in the returned map layer?