reachability - No internet at startup of iOS application - Keep retrying -
I want to test the startup of the application, if the device is connected to the Internet, do not notify the warning For the need of a device connected to the Internet, stop it from launching the app, if it is not connected, and at any time if it is disconnected, then to reload the app, it's like the principle of class conflict Is the only ...
loads for the internet On trust, if someone does not load Internet app us..And someone loses time user connection, the app will restart. Any idea how to do this?
Use the library to add it to the appellate:
Internet Reachability = [Reachability Possibility: Hollow Name: @ "www.google.com"]; Internet accessibility is internet accessibility. RecycleBlock = ^ (Reachability * Access) {// Main Thread Dispatch_Assic (Update on Dispatch_Jet_man_clu ()), {{NSLog (@ "Internet connection established"); // update accordingly, use storyboard or navigation stack}); }; // Internet is not accessible to internet. Inevitable = = (Reachability * Access) {// Main Thread Dispatch_Assist Update on Device (Dispatch_Get_man_quo ()), ^ {// Update accordingly, use Storyboard or Navigation Stack}); }; [Internet Reachability StartNotifier];
Comments
Post a Comment