CPNetworkObserver

From iPhone Development Wiki
Revision as of 18:33, 9 December 2012 by Theiostream (talk | contribs)
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 is a part of AppSupport.framework which allows you to query some 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.