Search code examples
iphonensnotificationcenterreachabilityconnectivity

Does/can Reachability constantly update internet connectivity status?


There are at least 3 view-controllers in my app where connectivity is necessary. Do I have to start a new Reachability test upon entering each one of those view-controllers (in their viewDidLoad for example), or can I just do it upon launch - like in my AppDelegate's didFinishLaunchingWithOptions - and have it constantly update me from there?

If so, how?

Assume I want to check Reachability from application didFinishLaunchingWithOptions, and then again from:
1) imageGalleryViewController
2) latestNewsViewController
3) promotionsViewController

thanks in advance!


Solution

  • There is already a very similar question (and answer) to this which uses NSNotificationCenter:

    Here