I am developing an app that should have similar functionalities as the game in the appStore Ace Card (now is called Casino). If you have your app in the background for a while or you lose your connection when you activate the game again this one starts from the beginning. If you still do not have a connection your application will not continue.
My app needs to retrieve some information from my server, and send some other information to the server, so if the device does not have a network connections or loses it there is no point to do anything or being in the middle of the app.
- How can I check for connection?
- How can I go back to the first ViewController and reset all its fields?
Thanks in advance.
Take a look at Apple’s Reachability examples. This is covered in full there and elsewhere on StackOverflow.