Sample code for rdar problem with reachability in iOS 8