Reputation: 310
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.
Thanks in advance.
Upvotes: 0
Views: 91
Reputation: 3937
As for the view controller ... that's entirely up to your design ... if are you using a UINavigationController
use:
[navigationController popToRootViewController:NO];
and force a reset on that controller
Upvotes: 0
Reputation: 5707
Take a look at Apple's Reachability examples. This is covered in full there and elsewhere on StackOverflow.
Upvotes: 4