You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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];
就可以
The text was updated successfully, but these errors were encountered: