Thursday, September 18, 2014

NSUserDefault in xcode 6 ios simulator not deleted with application

After installing xcode 6, when deleting application from ios simulator, the data saved in NSUserDefault does not deleted with the application.

This is a bug in the xcode 6 simulator. To overcome this issue, either reset the simulator or call the below code in didFinishLaunchingWithOptions method

  NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier];
   [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain];
 

2 comments:

  1. I want to always read your blogs. I love them Are you also searching for Nursing capstone Writing Help? we are the best solution for you. We are best known for delivering Nursing capstone writing services to students without having to break the bank

    ReplyDelete
  2. Your blogs are fantastic. I love them Are you also searching for best capstone project writing service? we are the best solution for you.

    ReplyDelete