0

Before iOS 8, if I uninstalled an app, the NSUserDefaults associated with that app would also be deleted. Then if I reinstalled the app, the NSUserDefaults would be their initial values.

However, with iOS 8, even after I delete an application, when I reinstall it, the NSUserDefaults are saved between application installs. They do not reset to their initial value.

Does anyone know if this is intentional? Or is this a bug?

Thanks!

Rickster
  • 870
  • 10
  • 17
  • possible duplicate of [NSUserDefaults not cleared after app uninstall on simulator](http://stackoverflow.com/questions/24985825/nsuserdefaults-not-cleared-after-app-uninstall-on-simulator) – Bhumit Mehta Sep 23 '14 at 18:50

1 Answers1

2

It is bug in simulators.This bug also exist in prior to iOS8 beta4 on devices.But on devices this bug is resolved but it currently exist on simulators.They have also changed the simulator directories structure.If you reset your simulator it will work fine.On iOS8 devices it will also work fine.

codester
  • 36,891
  • 10
  • 74
  • 72