Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephensprinkle-zz/2648872 to your computer and use it in GitHub Desktop.
Save stephensprinkle-zz/2648872 to your computer and use it in GitHub Desktop.
How I got reachability working with iOS 5
> Grab the files from Apple's Page
>> https://developer.apple.com/library/ios/#samplecode/Reachability/Listings/Classes_Reachability_h.html#//apple_ref/doc/uid/DTS40007324-Classes_Reachability_h-DontLinkElementID_5
> Place them in your project (copy in, and ideally place them in your classes group)
> Click on the Reachability.m file and then on the upper right area click on the 'show file inspector' icon.
> Then make sure the target membership is for your project.
> Lastly, turn off arc for this file by doing:
>> Select desired files at Target/Build Phases/Compile Sources
>> Double click on reachability.m
>> Type -fno-objc-arc
>> Press Enter or Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment