Question on loading layers and checking for connectivity

Discussion created by jlchapman4 on May 24, 2012
Latest reply on May 24, 2012 by jonesra
I'm trying to check for Internet connectivity in my iOS app.  I'm using the reachability class from Apple, but I want to check for Internet connectivity before layers are starting to be loaded.  I'm checking at the beginning of 'viewdidload'.  Checking at that point my layers are still going to try and load, creating multiple alert messages.  I thought about checking in appdelegate before the mapview, but normally you dont want to put code in appdelegate.

I like the ArcGis app how it checks before anything comes up and gives you a try again option.  Any ideas on how there checking and at what point in the program?  Any other suggestions would be great also!

My app is based on 'Map Demo' which comes with the SDK.