Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSUserDefaults resetStandardUserDefaults重制数据不成功 #90

Open
xiaoxiaotang opened this issue Mar 27, 2020 · 1 comment
Open

Comments

@xiaoxiaotang
Copy link

reset user defaults NSUserDefaults resetStandardUserDefaults发现没有成功,userdefaults数据还在,iphone11 ios13.3版本,但是使用
NSString*appDomain = [[NSBundlemainBundle]bundleIdentifier];
[[NSUserDefaultsstandardUserDefaults]removePersistentDomainForName:appDomain];
就可以

@HDB-Li
Copy link
Owner

HDB-Li commented Mar 27, 2020

@xiaoxiaotang I should have written a bad example in [Short Cut]. You can register a short cut action to implement the function of clearing NSUserDefaults.

Why is there such a bad example? I only tried in my own demo. Ha ha, thank you for reminding me. I'll change it later. 😆

HDB-Li pushed a commit that referenced this issue Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants