Skip to content
ARC and GCD Compatible Reachability Class for iOS. Drop in replacement for Apple Reachability
Objective-C Ruby
Pull request Compare This branch is 81 commits behind tonymillion:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a drop-in replacement for Apples Reachability class. It is ARC compatible, uses the new GCD methods to notify of network interface changes.

In addition to the standard NSNotification it supports the use of Blocks for when the network becomes reachable and unreachable.

Finally you can specify wether or not a WWAN connection is considered "reachable".

A Simple example

// allocate a reachability object
Reachability* reach = [Reachability reachabilityWithHostname:@""];

// set the blocks 
reach.reachableBlock = ^(Reachability*reach)

reach.unreachableBlock = ^(Reachability*reach)

// start the notifier which will cause the reachability object to retain itself!
[reach startNotifier];
Something went wrong with that request. Please try again.