I am currently trying to make a speed dial app for various numbers the user might enter. I am loading the phone all like so after clicking a UITableViewCell
- (IBAction)Dialer:(id)sender{
NSURL *url = [ [ NSURL alloc ] initWithString: @"tel:09-410-7078" ];
[[UIApplication sharedApplication] openURL:url];
}
that loads up the phone dialer and dials the number.. I’m woundering if after the phone call has ended is its possible to load the app from where it exited for the phone call.. or if there is a better way to do what I am trying to do?
Actually you should keep in mind that an application can be unloaded at any moment. But when your application is being unloaded your app delegate gets some messages (applicationWillTerminate, applicationWillResignActive, applicationDidEnterBackground). You should read this post. In those methods you should save some parameters of your application (current page, settings, etc.) and use them when your application is launched or become active again.
If you want to start your application manually you shouldn’t do so. User will be surprised by such behavior.