Difference between revisions of "CPNetworkObserver"

From iPhone Development Wiki
Jump to: navigation, search
(Transclude IPFHeader, registering this as a class in AppSupport.framework. fwlink AppSupport)
(Fix incorrect method signature)
Line 4: Line 4:
  
 
{{function signature
 
{{function signature
|signature=-(CPNetworkObserver *)sharedNetworkObserver;
+
|signature==(CPNetworkObserver *)sharedNetworkObserver;
 
}}
 
}}
  

Revision as of 18:43, 26 July 2013

CPNetworkObserver is a part of AppSupport 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.

Header