If you call:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://test.com"]];
it seems to automatically quit your app — bypassing the dealloc, viewDidDisappear, or any other functions.
Is there a way to put any code between this call and the Safari (or Phone or Email) launch, without having to put a timer before every openURL call?
====
EDIT: I need to call something only if one particular view is closed — whether it’s closed “politely”, or abruptly…
Have you tried putting something in the
method in your
UIApplicationDelegate?