Locations of visitors to this page

iPhone Developer News

Tuesday, June 22, 2010

How to check the Wifi and Internet connection in iPhone/iPad?



To monitor the network state of an iPhone or iPod touch. In particular, it demonstrates how to know when IP can be routed and when traffic will be routed through a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G, Download the sample project.




Network Activity indicator in iPhone/iPad Status Bar

To start the Network Activity Indicator animation:

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;


To stop the Network Activity Indicator animation:

[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

No comments:

Post a Comment