Open xiaoxiaotang opened 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. 😆
reset user defaults NSUserDefaults resetStandardUserDefaults发现没有成功,userdefaults数据还在,iphone11 ios13.3版本,但是使用 NSString*appDomain = [[NSBundlemainBundle]bundleIdentifier]; [[NSUserDefaultsstandardUserDefaults]removePersistentDomainForName:appDomain]; 就可以