简体   繁体   中英

How can i refresh my ios app when my ios app get connected to the internet without re-opening the app

In the app which I am developing, I want to start/invoke my app normally when it gets connected to the internet. I am using reachability class to test the internet connection but don't know how to reload the app when my app gets connected to the internet.

Actually keep a separate view controller with a image view will full screen. This image view will serve as a splash screen. Until the app connected to the internet.

[[[UIApplication sharedApplication] keyWindow] setRootViewController:splashViewController];

or present the splash view controller after app goes into background. Then app comes into foreground check for network connectivity and dismiss or keep the splashViewController based on the result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM