HDB-Li / LLDebugTool

LLDebugTool is a debugging tool for developers and testers that can help you analyze and manipulate data in non-xcode situations.
https://github.com/HDB-Li/LLDebugTool
Other
740 stars 122 forks source link

NSUserDefaults resetStandardUserDefaults重制数据不成功 #90

Open xiaoxiaotang opened 4 years ago

xiaoxiaotang commented 4 years ago

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

HDB-Li commented 4 years ago

@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. 😆