Open Source iOS Library For Easy Blocks Based Reachability Updates

In the past I mentioned a few libraries that make it easier to test reachability, but unfortunately some issues have come up with updates to the iOS platform.

Here’s a nice up-to-date library for tracking reachability changes with a nice simple blocks based callback called JTSReachability from Jared Sinclair.

This code example from the readme shows how to set up the block to be executed on network status changes:

JTSReachabilityResponder *responder = [JTSReachabilityResponder sharedInstance];

[responder addHandler:^(JTSNetworkStatus status) {
      // Respond to the value of "status"
} forKey:@"MyReachabilityKey"];

And in the dealloc be sure to remove MyReachabilityKey.

You can find JTSReachability on Github here.

A nice simple way to keep track of reachability.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source iOS Library For Easy Blocks Based Reachability Updates

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *