I want the ability to uninstall an application from within itself. Example: UIAlertView pops up and says "This Application has Expired." The user hits 'Ok' and then the application proceeds to shut down and remove itself from the device. Is there any way to do this?
I don't think there is a way to remove the app from phone itself. But, you can terminate the execution of an app from code using,
exit(0);
And this is also not encouraged as you should not quit the app abruptly without the user's knowledge. But its alright if you show an alert and quit the app, and is really necessary to quit the app.
No. And even if was technically possible, Apple would reject it. They don't like apps that are time limited -- note that even "lite" apps have to be useful in their own right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With