Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
CPNetworkObserver - iPhone Development Wiki

CPNetworkObserver

From iPhone Development Wiki
Revision as of 16:34, 26 October 2014 by Uroboro (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

CPNetworkObserver allows you to query information regarding networking status on iOS.

Methods

Signature +(CPNetworkObserver *)sharedNetworkObserver;

Obtains the shared network observer.


Signature -(BOOL)isNetworkReachable;

Tests if the network is reachable. (has shown unrealiable at times)


Signature -(BOOL)isWiFiEnabled;

Tests whether Wi-Fi is enabled.

External links