Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments