Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restarting iPhone application after [UIApplication sharedApplication] openURL

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.

like image 753
Jukurrpa Avatar asked Dec 17 '22 23:12

Jukurrpa


1 Answers

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

like image 61
Eiko Avatar answered May 16 '23 06:05

Eiko