How do you know that the application is launched for the first time after installation?
And how to 开发者_开发百科do what the code for the application uninstall?
You have to store a value in the PersistentStore. When getting the value for the first time from it you will obtain a null value, meaning that the application is launched for the first time. So you do your work and then save a value into the persistentObject to avoid getting null again. And that's it
精彩评论