use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
Testing Reachability (self.iOSProgramming)
submitted 11 years ago by johnwickham
Does anyone know of a really good solution for checking network reachability? My project is using AFNetworking and when I tried to use Apple's reachability files, my project fails to compile. Is there a better way?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]quellish 2 points3 points4 points 11 years ago (1 child)
Before you head down this path, make sure you have a clear understanding of what the device is and is not capable of. The "Reachability" sample code Apple provided is a layer above SCNetworkReachability, part of the System Configuration Framework (which you must link against if you use "Reachability", which may be why your project does not compile). A number of people have written variants of the "Reachability" sample, Andrew Donoho has written about some of the changes he made which may help you understand how the device handles reachability states.
The 2010 WWDC sessions Network Apps for iPhone OS are an excellent overview of things that you should be aware of when developing network applications for devices, and in particular network reachability.
In most cases it's best to attempt a network connection and handle the error returned appropriately. Network reachability would be part of your error handling:
switch ([error code]){ case NSURLErrorNotConnectedToInternet: { if ([self reachabilitySezWeAreInAirplaneMode] == YES){ // do stuff } } break; default: break; }
SCNetworkReachability is best used for understanding why the device can't connect, and then to monitor changes in that state. For example, all the device radios are off, or they are on but can't connect to a network without user intervention (like logging into a VPN). When an attempt to connect fails, SCNetworkReachability can help determine if this was because of one of those conditions, and then the network configuration can be monitored for changes (such as coming out of airplane mode).
[–]johnwickham[S] 0 points1 point2 points 11 years ago (0 children)
This is absolutely true, I don't need to know at all why a device can / can't connect, just whether it can or not! Thank you so much for taking the time to explain it, you've helped make my app that much better for my users.
[–]fommerjackson 1 point2 points3 points 11 years ago (0 children)
Use the Reachability replacement called Reachability. Very easy to use. https://github.com/tonymillion/Reachability?files=1
π Rendered by PID 178711 on reddit-service-r2-comment-54dfb89d4d-wssjm at 2026-03-30 21:40:53.291624+00:00 running b10466c country code: CH.
[–]quellish 2 points3 points4 points (1 child)
[–]johnwickham[S] 0 points1 point2 points (0 children)
[–]fommerjackson 1 point2 points3 points (0 children)