Question

Basically -[UIApplication openURL:] would be perfect, if it wasn't for the fact that it doesn't work within the same application (at least on simulator -- if this works on device someone please tell me). It's not a super big deal though if it just relaunches w/o URLness since I can obviously just persist some data. The goal of this is to essentially free all memory in the application and call all of the loading procedures.

Was it helpful?

Solution

You almost certainly could do this with the C library call execv. But like everybody else, I think it is wrong to even be thinking about it.

OTHER TIPS

This is not a good idea. You should fix your memory management issues and provide a reload button if the application pulls in external data sources.

If you absolutely need to do this, you can use -[UIApplication openURL:] to open a web page in Safari that redirects back to your application via an url scheme.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top