Difference between revisions of "CPNetworkObserver"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "'''CPNetworkObserver''' is a part of AppSupport.framework which allows you to query some information regarding networking status on iOS. {{function signature |signature=-...")
 
Line 6: Line 6:
  
 
Obtains the shared network observer.
 
Obtains the shared network observer.
 +
 +
----
  
 
{{function signature
 
{{function signature
Line 12: Line 14:
  
 
Tests if the network is reachable.
 
Tests if the network is reachable.
 +
 +
----
  
 
{{function signature
 
{{function signature

Revision as of 18:05, 9 December 2012

CPNetworkObserver is a part of AppSupport.framework which allows you to query some information regarding networking status on iOS.

Signature -(CPNetworkObserver *)sharedNetworkObserver;

Obtains the shared network observer.


Signature -(BOOL)isNetworkReachable;

Tests if the network is reachable.


Signature -(BOOL)isWiFiEnabled;

Tests whether Wi-Fi is enabled.