Usual disclaimer: It's not suppose to go to AppStore. It's an experiment.
I am looking for some API which will allow to uninstall app itself. If it will allow to uninstall 3rd party apps, it would be even better.
I haven't tested this, but it looks like it should work because it uses NSFileManager to perform a simple delete of the whole apps directory
NSError *err;
[[NSFileManager defaultManager] removeItemAtPath:[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] error:&err];
if (err) {
NSLog(@"%@", err);
}
else{
NSLog(@"success");
}
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