Question on loading layers and checking for connectivity

493
1
05-24-2012 09:03 AM
JerryChapman
New Contributor
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.

Thanks,

Jerry
0 Kudos
1 Reply
RickJones
Occasional Contributor II
You could use a while loop checking for connection, only exiting when it succeeds.
After that, load the maps.
0 Kudos