草庐IT

initWithSuiteName

全部标签

ios - NSUserDefaults initWithSuiteName 在删除应用程序后仍然存在

我有一个问题,如果我使用[[NSUserDefaultsalloc]initWithSuiteName:SUITE_NAME]]存储任何数据,即使在删除应用程序后数据仍然存在。这是应该发生的吗? 最佳答案 这是应该发生的。这实际上是initWithSuiteName的目的。,在应用组中的所有应用之间共享数据。文档说:Usethismethodinscenariossuchas:Whendevelopinganappsuite,tosharepreferencesorotherdataamongtheappsWhendevelopin

ios - NSUserDefaults initWithSuiteName 在删除应用程序后仍然存在

我有一个问题,如果我使用[[NSUserDefaultsalloc]initWithSuiteName:SUITE_NAME]]存储任何数据,即使在删除应用程序后数据仍然存在。这是应该发生的吗? 最佳答案 这是应该发生的。这实际上是initWithSuiteName的目的。,在应用组中的所有应用之间共享数据。文档说:Usethismethodinscenariossuchas:Whendevelopinganappsuite,tosharepreferencesorotherdataamongtheappsWhendevelopin