developer:ios-checkconnection

isConnected : Check for internet connectivity

Description

The method returns true if there is internet connection. Returns false if there is no internet connection.

Code Snippet

-(void)checkInternet
{
   if([ueConnection isConnected])
    {
       NSLog(@"There is internet");
    }
 
    else
    {
       NSLog(@"There is no internet");
 
    }
}
developer/ios-checkconnection.txt · Last modified: 2014/04/30 09:53 by jlei

Page Tools