Restarting iPhone application after [UIApplication sharedApplication] openURL

Jukurrpa picture Jukurrpa · Jul 23, 2010 · Viewed 7.5k times · Source

As title says I'd like to know how to restart my iPhone app after doing this:

[[UIApplication sharedApplication] openURL:[NSURL UrlWithString:@"tel://0123456789"]]

It seems pretty simple as I saw many topics also talking about restoring the very state of the application when openURL is called, but I can't find how to simply restart the app when the calling is finished.

Is it supposed to be the default behavior? As for me, the iPhone opens Favorites after call is finished, I don't know why.

Answer

Eiko picture Eiko · Jul 23, 2010

You can't. Starting an app is solely user's responsibility - which I consider a good thing.