All Questions

1174
votes
36answers
388103 views

How to check for an active Internet connection on iOS or OSX?

I would like to check to see if I have an Internet connection on iOS using the Cocoa Touch libraries or on OSX using the Cocoa libraries. I came up with a way to do this using an NSURL. The way I did...
161
votes
11answers
111073 views

Check for internet connection with Swift

When I try to check for an internet connection on my iPhone I get a bunch of errors. Can anyone help me to fix this? The code: import Foundation import SystemConfiguration public class Reachability...
84
votes
5answers
30147 views

How to use SCNetworkReachability in Swift

I'm trying to convert this code snippet to Swift. I'm struggling on getting off the ground due to some difficulties. - (BOOL) connectedToNetwork { // Create zero addy struct sockaddr_in zeroA...
138
votes
15answers
127574 views

Easiest way to detect Internet connection on iOS?

I know this question will appear to be a dupe of many others, however, I don't feel the simple case is well explained here. Coming from an Android and BlackBerry background, making requests through HT...
100
votes
10answers
77438 views

iOS Detect 3G or WiFi

I am not sure if this is possible, but I have this scenario. I have a website displayed in my UIWebView which has the link set in a UISegmentedController. They website can detect if you are on wifi o...
39
votes
5answers
60045 views

iPhone reachability checking

I've found several examples of code to do what I want (check for reachability), but none of it seems to be exact enough to be of use to me. I can't figure out why this doesn't want to play nice. I ha...
43
votes
2answers
30421 views

Reachability Guide for iOS

Has anyone found a halfway decent guide to implementing Reachability on iOS?
14
votes
3answers
25466 views

How to detect Network Signal Strength in iOS Reachability

I am creating a new Traveling Application in iOS, this application is highly dependent on Maps and will include two Maps. My first Map will work when the user has a strong Network Signal (Apple...
13
votes
6answers
28732 views

Detecting Network Connectivity Changes using Reachability, NSNotification and Network Link Conditioner in Swift

I'm trying to integrate network connectivity detection into my app, however it seems that somewhere along the line I have made a mistake as my network changes are not being detected/printed out into t...
15
votes
7answers
31009 views

How to use reachability class to detect valid internet connection?

I'm new to iOS development and am struggling to get the reachability.h class to work. Here is my code for view controller: - (void)viewWillAppear:(BOOL)animated { [[NSNotificationCenter defaultCe...

Previous Next