Unfortunately, it seems to me that you are out of luck - if you are not a jailbreak. To create a settings page for your application, you create a plist, not the actual encoding of the view. This leads to certain restrictions, such as the inability to add a button. The only thing you cannot do is execute any code from the Settings application - all you can do is change the set of settings.
Closest to all, you can add a radio button labeled "Clear history on next start" and check if the user is installed each time the application starts. Then set the settings so that the switch is set to Off.
source share